I am recording sounds from microphone input; before I can call System::startRecording I have to create my FMOD::Sound object with a call to System::CreateSound using an FMOD_CREATESOUNDEXINFO variable that defines the length of the sound.
Since I don’t know how long the sound is going to be; I have to allocate a rather large sound this way (30 secs), but the user is able to stop recording at any point.
What happens is that if the user stops recording after 10 seconds, I will have a remaining of 20 seconds of silence in my FMOD::Sound variable.
I would like to get rid of such waste by either cropping my FMOD::Sound variable or by copying only the valid portion of it into a new FMOD::Sound object. I haven’t been able to find any documentation on the matter, any help will be much appreciated.
- GD_nocturnae asked 11 years ago
- You must login to post comments