mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-17 08:56:45 -05:00
Added more comments by Robert Spier (robrt@users.sourceforge.net)
This commit is contained in:
parent
7fcea07002
commit
7fe18c9561
1 changed files with 11 additions and 2 deletions
|
|
@ -104,8 +104,8 @@ implementation can be found in the \ref alsa_pcm_rw section.
|
||||||
The poll or select functions (see 'man 2 poll' or 'man 2 select' for further
|
The poll or select functions (see 'man 2 poll' or 'man 2 select' for further
|
||||||
details) allows to receive requests/events from the device while
|
details) allows to receive requests/events from the device while
|
||||||
an application is waiting on events from other sources (like keyboard, screen,
|
an application is waiting on events from other sources (like keyboard, screen,
|
||||||
network etc.), too. The select function is old and deprecated in modern
|
network etc.), too. \ref snd_pcm_poll_descriptors can be used to get a file
|
||||||
applications, so the ALSA library does not support it. The implemented
|
descriptor to poll or select on. The implemented
|
||||||
transfer routines can be found in the \ref alsa_transfers section.
|
transfer routines can be found in the \ref alsa_transfers section.
|
||||||
|
|
||||||
\subsection pcm_transfer_async Asynchronous notification
|
\subsection pcm_transfer_async Asynchronous notification
|
||||||
|
|
@ -5157,6 +5157,15 @@ int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params, unsigned
|
||||||
* \param params Software configuration container
|
* \param params Software configuration container
|
||||||
* \param val Minimum avail frames to consider PCM ready
|
* \param val Minimum avail frames to consider PCM ready
|
||||||
* \return 0 otherwise a negative error code
|
* \return 0 otherwise a negative error code
|
||||||
|
*
|
||||||
|
* Note: This is similar to setting an OSS wakeup point. The valid
|
||||||
|
* values for 'val' are determined by the specific hardware. Most PC
|
||||||
|
* sound cards can only accept power of 2 frame counts (i.e. 512,
|
||||||
|
* 1024, 2048). You cannot use this as a high resolution timer - it
|
||||||
|
* is limited to how often the sound card hardware raises an
|
||||||
|
* interrupt. Note that you can greatly improve the reponses using
|
||||||
|
* \ref snd_pcm_sw_params_set_sleep_min where another timing source
|
||||||
|
* is used.
|
||||||
*/
|
*/
|
||||||
#ifndef DOXYGEN
|
#ifndef DOXYGEN
|
||||||
int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
|
int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue