-
March 17th, 2012, 04:07 PM
#1
Which endian CoreAudio API uses as audio buffer ?
I've testing microphone capturing by Core Audio Interfaces and mmio-API.
- 2channel (stereo)
- 16bit per channel
I can capture and save audio as .wav format then I checked buffer values by write these data to CSV file like below.
ofstream cs("pcm.csv");
short *p = (short*)captureBuffer;
for( int i = 0; i < capturer->BytesCaptured(); i+=4 )
{
cs << *p++ << "," << *p++ << endl;
}
PCM data that was captured by mmio-API seems as oscillating wave on CSV data, but PCM data that was retrieved by IAudioCaptureClient::GetBuffer did'nt seems oscillating wave.
How to treat audio data of Core Audio API ?
-
March 20th, 2012, 12:19 AM
#2
How to treat audio data buffer on Core Audio API ?
sorry, I'll fix my post title.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|