0
0

Please help!

I have been able to load mp3 from file, but I have an mp3
in my resource file on an pocket pc application. I need to get
this sound into the Fmod_Open and open it, I am unsure of how
to "POINT" to this data… the code i have only wants a "filename"
and it uses this to create the pointer… thanx in advance! 😛
(i am able to get the byte array of the mp3 in the resource file)
my fmod wrapper class is called Mp3Player

[code:mi1z5lc6]
// Declare our handles
IntPtr soundStream;
IntPtr soundHandle;

        // Initialize fmod with mixrate equal to 44.1kHz 
        Mp3Player.Init(44100, 16, 0);

        // Initialize the handle with the track file. 
        // Note that you must provide the full Pocket PC path. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_io.asp for more info... 
        soundStream = Mp3Player.GetStream(customFilePath);

        // Open the stream in Normal mode, which is combination of Mono sound, 16 bits, Signed 
        soundHandle = Mp3Player.Open(soundStream, 0x100, 0, 0);

        // Start playing 
        Mp3Player.Play(0, soundHandle);

        // ----------------------------- 
        // Do Something here... 
        // ----------------------------- 

        // Stop playing 
        //Mp3Player.Stop(soundHandle);

        // Release the ressources 
        //Mp3Player.Close();[/code:mi1z5lc6]
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.