Re: Does ALSA LIB keeps a check on speed of data transfer during PLAYBACK

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

 



dinesh wrote:
> 
> 
> 
> 
> HI,
> 
> if i play some wave file through *aplay using alsa-lib *then does it 
> keeps a check on data transfer speed of wave file with driver or it 
> simply plays it.
> 
> 
The wav file will have the frame rate speed in the 
header.  It will be played at the speed that the header 
says it was encoded at.  It does this by setting the 
speed of the playback device.  At that point all aplay 
does is send buffers of data to the driver and the 
device plays them at the speed it was requested to play at.

e.g. if the frame rate is 44100 Hz, then the device 
will play a frame every 1/44100 second.  So the actual 
frame rate depends on the clock in the device.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux