0
0

I am building a software Set-Top-Box to launch a radio network. I am
able to play a stream. I need to be able to pass different url’s to the
same instance with minimum delay. I like you library so far. I am
running a P4 single core 3.2 ghz machine. I have not try it on slowing
machines yet. I need to also get the Mp3 tag from the stream especially
when the song changes

Second can a 32k ring buffer be passed to the FMODEx for decoding.

I am using the content of the netstream C# example in my code. I need to been able to replace the current stream with the new that is chosen. I am want to keep resources to a minimum.

  • You must to post comments
0
0

I figure out the first part. Options #1 user more memory

        result = channel.stop();
        ERRCHECK(result);
        result = sound.release();
        ERRCHECK(result);
        channel = null;

        statusBar.Text = "Buffering...";

           result = system.createSound(url, (FMOD.MODE.HARDWARE | FMOD.MODE._2D | FMOD.MODE.CREATESTREAM | FMOD.MODE.NONBLOCKING), ref sound);
           ERRCHECK(result);

          soundcreated = true;

The Second Option is to reinitialize the whole thing

        result = channel.stop();
        ERRCHECK(result);
        result = sound.release();
        ERRCHECK(result);
        result = system.close();
        ERRCHECK(result);
        result = system.release();
        ERRCHECK(result);
        channel = null;

       result = FMOD.Factory.System_Create(ref system);
       ERRCHECK(result);
       result = system.init(2, FMOD.INITFLAG.NORMAL, (IntPtr)null);
       ERRCHECK(result);
       result = system.setStreamBufferSize(128 * 1024, FMOD.TIMEUNIT.RAWBYTES);
        ERRCHECK(result);
            statusBar.Text = "Buffering...";

           result = system.createSound(url, (FMOD.MODE.HARDWARE | FMOD.MODE._2D | FMOD.MODE.CREATESTREAM | FMOD.MODE.NONBLOCKING), ref sound);
           ERRCHECK(result);

          soundcreated = true;

What I would like to know is there any different on resources between the two options?

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.