• 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
Re: Using an AudioConverter to convert mono to stereo?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using an AudioConverter to convert mono to stereo?


  • Subject: Re: Using an AudioConverter to convert mono to stereo?
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 8 Feb 2005 12:31:47 -0800

Set a channel map on the converter:

SInt32 chmap[2] = { 0, 0 };

AudioConverterSetProperty(theConverter, kAudioConverterChannelMap, sizeof(chmap), chmap);

This tells the converter that the sources for the (presumably) 2 output channels are both input channel index 0.

Doug


On Feb 8, 2005, at 12:10 PM, Simon Fraser wrote:

I have an Audio Converter hooked up via my Audio Unit's render callback
to perform on-the-fly conversions of audio sample formats and sample
frequencies. This is working fine to upsample 22.05kHz audio to 44.1kHz,
and to convert signed 16-bit ints to floats.

However, if the input is mono (mChannelsPerFrame = 1) but the requested
output is stereo (2 channels), the Audio Converter doesn't put the audio
in both channels; all the sound comes out of the left speaker.

Do I have to do something more to get sound into both channels?

Thanks for any info.
Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Using an AudioConverter to convert mono to stereo? (From: Simon Fraser <email@hidden>)

  • Prev by Date: Using an AudioConverter to convert mono to stereo?
  • Next by Date: Re: Using an AudioConverter to convert mono to stereo?
  • Previous by thread: Using an AudioConverter to convert mono to stereo?
  • Next by thread: Re: Using an AudioConverter to convert mono to stereo?
  • Index(es):
    • Date
    • Thread