Re: about changing inNumberFrames in renderer callbacks
Re: about changing inNumberFrames in renderer callbacks
- Subject: Re: about changing inNumberFrames in renderer callbacks
- From: William Stewart <email@hidden>
- Date: Fri, 27 May 2005 10:55:35 -0700
On 27/05/2005, at 3:44 AM, Derk-Jan Hartman wrote:
Hello all,
So i finally succeeded in getting auhal renderer working. There is
one problem left. the inNumberFrames that the renderercallback gets
passed sometimes changes value.
You must be doing a sample rate conversion - I'd guess that the num
frames is changing by 4 every now and then.
Now i can change the amount of samplesframes i get from VLC, but
this is not an atomic operation and takes 1 or 2 buffer retrieval
call before it takes affect.
I think this is a problem - you should have enough sample frames
buffered to be able to deal with these minor fluctuations. A good
example of what to do here is the file reading code we provide in the
SDK - it is buffering ahead by some amount (about a half second I
think), so the I/O path is just moving through "ready to go" audio data.
So my questions:
1: Why does the value change? what is the logical behind it, what
goal does auhal try to reach?
2: Can i just set the 1st value auhal gives me and then if another
amount of samples is requested: fill up rest space with silence and
dump the rest parts of my buffer if auhal wants fewer samples?
nope - you will have to provide the data you are being requested to
provide.
Bill
DJ
---
Universiteit Twente
Derk-Jan Hartman (d.hartman at student.utwente dot nl)
http://www.sidequest.org
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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