Strange AudioConverter behavior ?
Strange AudioConverter behavior ?
- Subject: Strange AudioConverter behavior ?
- From: Martin Hairer <email@hidden>
- Date: Mon, 13 Oct 2003 23:47:34 +0100
Hi,
I have problems with the kAudioConverterChannelMap property of the
AudioConverter API. I want to set up a converter that converts
interleaved
stereo from one format into another one, but swaps the two channels. The
following piece of code:
AudioConverterGetPropertyInfo(myConverter, kAudioConverterChannelMap,
&size, &writable);
printf(stdout, "Size %d canwrite %d", size, writable);
SInt32 *chans = new SInt32[2];
chans[0] = 1;
chans[1] = 0;
printf(stdout, "Write Channel Map %d %d %d", chans[0], chans[1], size);
AudioConverterSetProperty(myConverter, kAudioConverterChannelMap, size,
chans);
AudioConverterGetProperty(myConverter, kAudioConverterChannelMap,
&size, chans);
printf(stdout, "Get Channel Map %d %d %d", chans[0], chans[1], size);
produces the following output for me:
Size 8 canwrite 1
Write Channel Map 1 0 8
Get Channel Map 0 1 8
Does anyone have an idea why the channel map doesn't seem to be updated?
The input format is float, 44.1kHz and the output format is 16bit PCM,
44.1 kHz.
Thanks,
Martin
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.