Hi, I thought I’ll not experience any incompatibility problems when I started to upgrade my code from FMOD (3.75) to current version of FMODEx. The only one function (replacement?) I can’t find in FMODEx is FSOUND_Sample_Alloc, which I need to use for allocating empty sound and pass PCM data into it in chunks (in main loop which runs every frame app is on). If there’s some way how to do this with FMODEx, and somebody knows it, I’ll be thankful.
I didn’t gave up anyway, I tried using CreateSound function with FMOD_OPENRAW flag, and specified NULL pointer into data parameter, and configured soundexinfo structure (channels, freq., format), but this just crashed the whole app, I guess I can’t pass zero as data pointer this way. So I’m wondering if there’s actually some other (working) way to do it.
[b:34gqgay6]Edit: The crashing seems to be fixed by using FMOD_OPENUSER flag instead of FMOD_OPENRAW.[/b:34gqgay6]
[b:34gqgay6]Okay, so I found another problem. With FMOD_OPENUSER, I have to specify length of sound, but in this case, I can’t do this, as sound from file is passed to playing in chunks like I said before, so, I’m actually lost again.[/b:34gqgay6]
- Mr.Nameless asked 8 years ago
Hi Mr Nameless, welcome to the FMOD forums!
[quote:wn5xswf1]I can’t find in FMODEx is FSOUND_Sample_Alloc, which I need to use for allocating empty sound and pass PCM data into it in chunks[/quote:wn5xswf1]
Yeah OPEN_USER does require the sound length. Alternatively you could create a custom FMOD::DSP and use playDSP, that would not require a length.
- Guest answered 8 years ago
Please login first to submit.