• 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
Creating new Queues in background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating new Queues in background


  • Subject: Creating new Queues in background
  • From: email@hidden
  • Date: Thu, 04 Jul 2013 11:26:41 +0000
  • Thread-topic: Creating new Queues in background

Hi all,

 

I have an VoIP app which uses AudioQueues for automatically playback of incoming audio even in background.  Everything works fine, if another application (e.g. music player or youtube) uses the speaker, my app mutes. The problem is that the app should restart playback automatically but is unable to open the queues and to enqueue new audio data. The same code is working in foreground, so if the app comes to the foreground, the playback starts.

 

OSStatus queueError = AudioQueueEnqueueBuffer(inAQ, inCompleteAQBuffer, 0, NULL);

if(queueError == -66671) {

//setup new queues

}

 

 

Q:  Should this code work in background after another app has used the output device?

 

AudioQueueNewOutput(&mDataFormat, AQPlayer::AQBufferCallback, this,  CFRunLoopGetCurrent(), kCFRunLoopCommonModes, 0, &mQueue);

                UInt32 bufferByteSize = voicePacketSize;

AudioQueueAddPropertyListener(mQueue, kAudioQueueProperty_IsRunning, isRunningProc, this);

 

Q: Would some higher layer methods (like audio sessions) solve my problem?

 

 

Any feedback is welcome, thanks in advance

 

Sebastian

 

 



Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank. Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.
 _______________________________________________
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: off by one
  • Next by Date: Error Instantiating OutputUnit
  • Previous by thread: off by one
  • Next by thread: Error Instantiating OutputUnit
  • Index(es):
    • Date
    • Thread