May 04, 2005 08:58
Just Another BlogCenter Test
Am desperately trying to figure out a way to record audio in Journler.
1. I thought the CoreAudio examples would help, but not much really. The integration of cpp and m just doesn't play over well.
2. Quicktime 7 Pro includes the ability to make Audio recordings. Somewhere in the new APIs there is certainly a way to take advantage of this. I cannot, however, include the quicktime headers in my projects because of "Only Available for Mac OS 10.4" comments.
3. MTCoreAudio looks hopeful. I can implement a very simple audio device and make a recording. From within a intercept method I can grab the audio as it passes through the device and write the buffer to file. Unfortunately, I don't have any idea what kind of audio this is. I assume unconverted, which means the format would be the same as the CoreAudio record example. I need to write an aiff header for this guy, have narrowed it down to one single problem: the size of the audio data, information which seems to be stored in the aiff header, but I don't know how to change that data.
I know the header is 4096 bytes long and is always the same but for 8 bytes. 4088 from the size of file is the number here, but even changing that didn't fix my audio fuzz.
Need to hop online and research the MTCoreAudio framework. It's very approachable, I just need an example on saving data.