I would like to use the fmod library to decode streams (mp3, ogg vorbis) and send me the decoded PCM samples, because i want to use my own output (can be waveout, dsound, disk writer, etc etc).
I did that:
FSOUND_Init(44100, 32, FSOUND_INIT_GLOBALFOCUS);
DSP_Unit = FSOUND_DSP_Create(input_fmod_get_pcm_samples, FSOUND_DSP_DEFAULTPRIORITY_USER, (int)input);
And I use the DSP callback to get the pcm samples. Is it the good way ?
But FMOD seems to have builtin timer, and doesnot decode stream as fast as possible. By example, if I want to decode 10 s of sound before hearing it (i have a 10s buffer), it will take 10s to decode (but my ahtlon 2000+ can do it in somes ms 😉 ).
Did you understand my pb ? Excuse my english …
Thanks in advance,
- kyser asked 14 years ago
- You must login to post comments