• 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: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback


  • Subject: Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback
  • From: Paul Davis <email@hidden>
  • Date: Mon, 1 Nov 2010 21:41:49 -0400

On Mon, Nov 1, 2010 at 7:05 PM, Nikolai Collinsky
<email@hidden> wrote:
> OK, turns out the iPhone developer forums have a bit more information. Just posting here to help anyone hunting for information and seeing this thread.
>
> The solution in my case was a one liner; make sure:
>
> status = AudioSessionSetProperty(kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof (UInt32), &(UInt32) {1});
>
> was established alongside setting up kAudioSessionCategory_MediaPlayback.
>
> So it is possible to stream directly from the iPod Library without prior file copy and with a background producer/consumer thread. BBCut now works with this 4.1 AVAssetReader.

I don't know much about what you're doing or using, but in case you
are not aware of this, you cannot plan on doing filesystem I/O from
within the audio callback. if that's not relevant and/or not the
problem, i apologize for butting in. if it is related, you need to use
a lock-free ringbuffer between the thread doing filesystem i/o and the
audio callback thread.
 _______________________________________________
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: 
 >Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback (From: Nikolai Collinsky <email@hidden>)

  • Prev by Date: Re: audio-specific UI component libraries for Cocoa?
  • Next by Date: AudioQueue Services approximate latency?
  • Previous by thread: Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback
  • Next by thread: AudioQueue Services approximate latency?
  • Index(es):
    • Date
    • Thread