• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange AudioConverter behavior ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: iMic
  • Next by Date: Re: man coreaudio (?)
  • Previous by thread: iMic
  • Next by thread: Re: coreaudio-api digest, Vol 2 #880 - 15 msgs
  • Index(es):
    • Date
    • Thread