0
0

Hi! I’m working on an iPhone project that is recording and saving wav files, and they were hoping to use compression to bring down the file size. I haven’t been able to find anything within FMOD to handle that. There IS an AudioConverter in CoreAudio, but it’s been difficult to find information on taking an FMOD_SOUND object and converting it to work with CoreAudio (not to mention a shortage of sample code on how to use it anyway). At this point we’ve pretty much decided it’s going to take too long and may introduce a delay when converting anyway, which we don’t want. But as a last ditch effort I wanted to ask:

Is there an easy way to compress and save a wav file within FMOD? And if not, is there an easy way to take the FMOD_SOUND file and do this in CoreAudio (or something else) before saving without introducing a long delay?

Thanks!

  • You must to post comments
0
0

FMOD is primarily for audio playback, we do not expose any encoding in the public API. You can quite easily extract the sample data from a FMOD::Sound using Sound::lock, this is what you would pass to the encoder.

-Pete

  • You must to post comments
0
0

O.K. So I’d basically take the raw data I’d be saving to the wav file and then figure out how to get that into the AudioConverter or some other code to handle it. That’s pretty much what I figured but I was hoping there was an easier way. If they had more time I’d work on that but this is supposed to launch soon. Thanks!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.