![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Example implementation how to access the ALSA sound backend. More...
Go to the source code of this file.
Example implementation how to access the ALSA sound backend.
Definition in file alsa.c.
Functions | |
| size_t | audio_offset () |
| void | audio_init () |
| size_t | audio_write (const void *data, size_t amount) |
| void | audio_start (unsigned int rate, unsigned int channel_count) |
| void | audio_stop () |
Variables | |
| static snd_pcm_t * | playback_handle = 0 |
| static snd_pcm_sw_params_t * | sw_params = 0 |
| static snd_pcm_hw_params_t * | hw_params = 0 |
| static snd_pcm_sframes_t | buffer_size = 0 |
| static snd_pcm_sframes_t | written = 0 |
| static snd_pcm_sframes_t | delay = 0 |
| static unsigned int | rate = 44100 |
| static int | audio_initialised = 0 |
| size_t audio_offset | ( | ) |
Definition at line 38 of file alsa.c.
References delay, playback_handle, and written.
| void audio_init | ( | ) |
Definition at line 46 of file alsa.c.
References audio_initialised, buffer_size, hw_params, playback_handle, rate, and sw_params.
Referenced by audio_start().
Here is the caller graph for this function:| size_t audio_write | ( | const void * | data, |
| size_t | amount | ||
| ) |
Definition at line 122 of file alsa.c.
References playback_handle, and written.
Referenced by main().
Here is the caller graph for this function:| void audio_start | ( | unsigned int | rate, |
| unsigned int | channel_count | ||
| ) |
Definition at line 155 of file alsa.c.
References audio_init(), and playback_handle.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void audio_stop | ( | ) |
Definition at line 163 of file alsa.c.
References playback_handle.
Referenced by main().
Here is the caller graph for this function:
|
static |
Definition at line 25 of file alsa.c.
Referenced by audio_init(), audio_offset(), audio_start(), audio_stop(), and audio_write().
|
static |
Definition at line 26 of file alsa.c.
Referenced by audio_init().
|
static |
Definition at line 27 of file alsa.c.
Referenced by audio_init().
|
static |
Definition at line 28 of file alsa.c.
Referenced by audio_init().
|
static |
Definition at line 30 of file alsa.c.
Referenced by audio_offset(), and audio_write().
|
static |
Definition at line 31 of file alsa.c.
Referenced by CallQueue_test::Worker::Worker(), audio_offset(), IncidenceCount_test::perform_multithreadStressTest(), BusTerm_test::pushDiff(), and SyncClasslock_test::run().
|
static |
Definition at line 33 of file alsa.c.
Referenced by audio_init(), and lib::time::operator/().
|
static |
Definition at line 35 of file alsa.c.
Referenced by audio_init().