Re: iOS 4.1: using AVAssetReader to stream from an audio file interrupts audio callback
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: Doug McCoy <email@hidden>
- Date: Thu, 19 May 2011 16:48:52 -0700
I see this old thread that almost addresses my current issue. But I have a new twist.
My issue is that I would like access the PCM samples of the currently playing ipod track, but when I use the AVAssetReader techniques as described below, the ipod stops playing.
Is there any way in which to access the sample data of the current track while it is still playing?
Thanks in advance!
---
Check out my new iPhone app, FlipTalk. Once featured on the iTunes App Store "What's Hot" list!
http://fliptalkapp.comhttp://itunes.com/apps/FlipTalk/http://tinyurl.com/FlipTalkYoutube
On Mon, Nov 1, 2010 at 6:41 PM, Paul Davis
<email@hidden> wrote:
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
_______________________________________________
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