0
0

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.

Thanks again,
Richard.

[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]

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Oh, thanks, I’ll check on that!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.