• 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
how to get mono? (the good kind)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get mono? (the good kind)


  • Subject: how to get mono? (the good kind)
  • From: Colin Klipsch <email@hidden>
  • Date: Tue, 27 Aug 2002 18:07:16 -0400

Greetings.

I'm playing a continuous stream of 8-bit sound samples that I compute on the fly. (Actually, I'm having the computer do this; I have no such talent myself.) Toward this end, I'm opening up an AudioUnit, giving it an input callback routine via an AudioUnitInputCallback, and specifying the sound's format with an AudioStreamBasicDescription. I borrowed heavily from the example project in:

/Developer/Examples/CoreAudio/Services/DefaultOutputUnit

All is more or less well and working as expected. But just the other day, when I put some earphones on, I noticed that my one-channel sound stream is being played through the /left/ speaker only. The right speaker is dead.

Since I wish to produce monophonic sound -- that is, one channel of data sent to both speakers simultaneously -- there's obviously some more set up I have to do. Can anyone tell me how to achieve this in CoreAudio? I searched among all the 'kAudioUnitProperty_' constants and couldn't seem to find anything relevant.

Thankee kindly.

-- Colin K.
_______________________________________________
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.

  • Follow-Ups:
    • Re: how to get mono? (the good kind)
      • From: Doug Wyatt <email@hidden>
    • Re: how to get mono? (the good kind)
      • From: Christof Faller <email@hidden>
  • Prev by Date: Re: Moving data around...
  • Next by Date: Re: Moving data around...
  • Previous by thread: Re: Moving data around...
  • Next by thread: Re: how to get mono? (the good kind)
  • Index(es):
    • Date
    • Thread