Re: What does snd_pcm_delay() actually return?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jaroslav Kysela wrote:
> On Fri, 13 Jun 2008, Takashi Iwai wrote:
>
>   
>> - Add some new API functions,
>>     
>
> I would prefer to extend the current API than to change meaning of hw_ptr 
> to handle extra latencies.
>
>   
I would prefer the definition of snd_pcm_delay() to be:
Before the next sample is written to the buffer, snd_pcm_delay() returns 
the expect time delay, in frames, indicating the time the next sample 
will reach the speakers.
This is what snd_pcm_delay() was introduced into the ALSA api for. I 
remember, because it was added as a result of me requesting it.


Then implement a totally different api call to help with under run timings.


James

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux