package alsa
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Alsa.PcmSource
Handle to a device.
Parameters of a device.
Wanted stream.
Modes for opening a stream.
Recover the stream state from an error or suspend. * This a high-level helper function building on other functions. * This functions handles Interrupted, Buffer_xrun and Suspended * exceptions trying to prepare given stream for next I/O. * Raises the given exception when not recognized/used.
pause hnd pause pauses (when pause is true) or resume (when pause * is false) a PCM.
Wait for a PCM to become ready. The second argument is the timeout in * milliseconds (negative for infinite). Returns false if a timeout * occured.
readi handle buf ofs len reads len interleaved frames in buf * starting at offset ofs (in bytes). It returns the actual number of * frames read.
writei handle buf ofs len writes len interleaved frames of buf * starting at offset ofs (in bytes).
val readn_float_ba :
handle ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
intval writen_float_ba :
handle ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
intval writei_float_ba :
handle ->
int ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t ->
inttype state = | St_open(*open
*)| St_setup(*setup installed
*)| St_prepared(*ready to start
*)| St_running(*running
*)| St_xrun(*stopped: underrun (playback) or overrun (capture) detected
*)| St_draining(*draining: running (playback) or stopped (capture)
*)| St_paused(*paused
*)| St_suspended(*hardware is suspended
*)| St_disconnected(*hardward is disconnected
*)
State.
Access mode.
Format of audio data.
set_rate_near handle params rate dir sets the sampling rate (in Hz). * If the rate is not avalaible, dir is used to determine the direction of * the nearest available sampling rate to use . The actual sampling rate used * is returned.
Set the buffer size near a value in frames.