Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
alsa.h File Reference

Interfacing to ALSA sound output. More...

Go to the source code of this file.

Description

Interfacing to ALSA sound output.

Remarks
Example implementation from 2011
Todo:
for now this header defines some functions used for experimentation with ALSA
See also
output-slot.hpp

Definition in file alsa.h.

#include <stdlib.h>

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 ()
 

Function Documentation

◆ audio_offset()

size_t audio_offset ( )

Definition at line 38 of file alsa.c.

References delay, playback_handle, and written.

◆ audio_init()

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:

◆ audio_write()

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:

◆ audio_start()

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:

◆ audio_stop()

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: