I have three stereo 44.1 16 bit wave files. All files have the same length (about 1′). I’d like to play them simultanously to three stereo outputs of my card. I made final.fsb file using FSBank. All those outputs are recognized by WinMM driver. What I’m doing (delphi):
stream1 := FSOUND_Stream_Open(‘c:\fsb\final\final.fsb’, FSOUND_NONBLOCKING, 0, 0);
ch1 := FSOUND_Stream_Play(FSOUND_FREE, stream1);
And I can hear nothing. What I’m doing wrong? Could anybody give me an example code in Delphi?
- JacekH asked 13 years ago
You are using the NONBLOCKING flag, so in order for your code to work you would need to add a loop after you open your stream that would poll FMOD using FSOUND_Stream_GetOpenState, and once the open state call returns a value < 0 (meaning that it succeeded) then you can play it. Its all written in the tutorials on how to us the nonblocking flag, take a look at them.
- Paranoid_Android answered 13 years ago
OK. Now works. One stupid question… I have three stereo files. I create:
Single Interleaved FSB file, Cross-platform, PCM (1:1) and I get final mono file. But I’d liketo get somtehing like ac-3 stream, I mean an interleave file which I would play to individual outputs (3 stereo outs). Is it possible?
- JacekH answered 13 years ago
Please login first to submit.