• 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
AudioQueueSetProperty Channel Layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioQueueSetProperty Channel Layout


  • Subject: AudioQueueSetProperty Channel Layout
  • From: Dan Thompson <email@hidden>
  • Date: Fri, 23 Mar 2012 14:15:31 -0700

Hi Everyone,

I'm trying to route a stereo audio source to the rear channels, and I'm having no luck - all audio ceases after the AudioQueueSetProperty call.

Eventually, I just gave up doing that and ended up just trying to set the stream to "stereo", and even that causes all audio to stop:


AudioChannelLayout L;
memset(&L, 0, sizeof(L));

// Just simply try and tell the queue its stereo.
L.mChannelLayoutTag = kAudioChannelLayoutTag_Stereo;

// If this call is commented out, audio plays fine, with this call, audio ceases. The return value indicates success.
AudioQueueSetProperty(pDriver->m_Queue, kAudioQueueProperty_ChannelLayout, &L, sizeof(L));


In addition, if I try to do an AudioQueueGetProperty() on the queue to see what it thinks its layout is (without trying to set it), it always returns a failure indicating a nonexistent property.

Any ideas? I've googled all over the place and from the few resources I've found it really seems like I'm writing the code correctly. Does the queue need to be in a specific state in order to work? Anything? Bueller?

Thanks,
Dan
 _______________________________________________
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

  • Prev by Date: get channels support from specific AudioID, please help me see what is wrong in the code
  • Next by Date: 2003332927 error code when getting the channels number property of Build-in Microphone
  • Previous by thread: get channels support from specific AudioID, please help me see what is wrong in the code
  • Next by thread: 2003332927 error code when getting the channels number property of Build-in Microphone
  • Index(es):
    • Date
    • Thread