Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
alsa.h File Reference

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

void audio_init ()
 
size_t audio_offset ()
 
void audio_start (unsigned int rate, unsigned int channel_count)
 
void audio_stop ()
 
size_t audio_write (const void *data, size_t amount)
 

Function Documentation

size_t audio_offset ( )

Definition at line 46 of file alsa.c.

References delay, playback_handle, and written.

void audio_init ( )

Definition at line 54 of file alsa.c.

References audio_initialised, buffer_size, hw_params, lib::meta::min(), playback_handle, rate, and sw_params.

Referenced by audio_start().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

size_t audio_write ( const void *  data,
size_t  amount 
)

Definition at line 130 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 163 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 171 of file alsa.c.

References playback_handle.

Referenced by main().

+ Here is the caller graph for this function: