Hi,
I'm recording built-in mic input with coreaudio based on apple examples. The input is converted with an audio converter and written to a quicktime file. Everything works except that the playback of the audio result sounds like if donald duck spoke into the mic. what is the point ? I've attached my asbd's for debugging:
--------------------------------- *** fDeviceFormat *** Received with AudioUnitGetProperty sample rate :44100.000000 format id :0x6c70636d, 6C70636D format flags :9 bytes/packet :8 frames/packet :1 bytes/frame :8 channels/frame:2 bits/channel :32 reserved :0 --------------------------------- *** fOutputFormat *** Manually built sample rate :44100.000000 format id :0x6c70636d, 6C70636D format flags :29 bytes/packet :4 frames/packet :1 bytes/frame :4 channels/frame:2 bits/channel :32 reserved :0 --------------------------------- *** outputASBD *** Manually built sample rate :44100.000000 format id :0x6c70636d, 6C70636D format flags :9 bytes/packet :8 frames/packet :1 bytes/frame :8 channels/frame:2 bits/channel :32 reserved :0
I created the audio converter with fDeviceFormat as input and outputASBD as output. I use AudioConverterFillComplexBuffer and AddMediaSample2 to convert and store the samples.
I read a lot in various mailing lists but still did not succeed. Please give me an advice...
Shall I post the whole code (if it helps) ?
TIA
wg |