Re: AudioFileReadPackets cache policy
Re: AudioFileReadPackets cache policy
- Subject: Re: AudioFileReadPackets cache policy
- From: White Hexagon <email@hidden>
- Date: Mon, 05 Jul 2010 00:37:23 +0300
Indeed, but at the time it was the only way I could get AMR playback to
work, see:
http://stackoverflow.com/questions/2866367/how-to-populate-audiostreambasicdescription-for-amr-playback
https://devforums.apple.com/message/224563#224563
So now that my buffer is disk based (which has some benefits in terms of
being able to 'replay' within a larger buffer), I'd still like to know
more about the caching, and if it explains my current issues.
On 2010-07-02 20:58, William Stewart wrote:
> This seems like a very strange thing to do... Why wouldn't you just write and read from a buffer?
>
> On Jul 2, 2010, at 1:53 AM, White Hexagon wrote:
>
>> So just to clarify some more. I have one thread writing frames to a
>> file, which loops back to the start, after a certain number of frames
>> have been written, and overwrites the previous data.
>>
>> My playback thread is a few seconds behind the writing. My impression
>> is that the after the first loop/'rewind', the new file contents look
>> correct (I 'synchronizeFile' between writes), but the playback AQ seems
>> to be using stale data.
>>
>> Now I'm playing around with trying to restart the AQ, which is causing a
>> glitch in my audio each time it has to be torn down and setup. I'm also
>> starting to suspect that this is still using cached data, maybe because
>> the filename is the same? Although I'm struggling a bit to test and
>> confirm this.
>>
>> Does anyone have any ideas what might be going on please?
>>
>> On 2010-06-30 14:54, White Hexagon wrote:
>>> Regarding parameter: 'inUseCache (Set to true to cache the data.
>>> Otherwise, set to false.)'
_______________________________________________
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