0
0

While trying to understand how recording works in FMOD 4, a few questions came out.

First you create a sound buffer with the FMOD_CREATESOUNDEXINFO structure and call system::recordStart on it, with looping enabled.

At this point I understand (or believe so) you need to read the data from the buffer to write it to a file. This can be done with sound::lock and sound::unlock to access the buffer.

The questions are: how is it possible to know when a certain amount of data has been recorded? Ideally a callback should trigger when cursor is at the beginning of buffer and a second one qhen it is half full.

Is it possible to set SyncPoints in a sound that is being recorded and have the callbacks work?
I’m not sure playing the sound with zero volume and using the play callbacks is a safe thing to do, since recording and playback could happen at (slightly) different speeds.

By the way, am I missing something or there is no way to get the position of the recording cursor?

Thanks in advance for any answer,
Davide

PS If anybody wants the code I’m writing (a simple multiplatform Qt wrapper to play and record streams with FMOD) just ask, I’ll be happy to send it.

  • You must to post comments
0
0

[quote:3dwbz32q]By the way, am I missing something or there is no way to get the position of the recording cursor? [/quote:3dwbz32q]

Yes, I missed System::getRecordPosition 😳

sorry :)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.