audio_output_alsa.c File Reference

ALSA audio output driver. More...

#include "stdinc.h"
#include <alsa/asoundlib.h>
#include "audio_file.h"
#include "audio_output.h"
#include "config.h"
Include dependency graph for audio_output_alsa.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int audio_output_apply_hwparams (void)
 Alter the audio output parameters of the audio output device.
static void audio_output_volume_open (void)
 Open the ALSA mixer device, making it possible to adjust the volume.
int audio_output_open (void)
 Open the sound device for audio output.
int audio_output_play (struct audio_file *fd)
 Write data to the sound device.
void audio_output_close (void)
 Close the sound device.
static int audio_output_volume_adjust (int n)
 Adjust the audio output by a certain percentage and return the new value.
int audio_output_volume_up (void)
 Increment the volume and return the new value in percent.
int audio_output_volume_down (void)
 Decrement the volume and return the new value in percent.

Variables

static snd_pcm_t * devhnd
 Handle to the audio device obtained from ALSA.
static unsigned int channels = 0
 the amount of channels that is currently used for playback.
static unsigned int srate = 0
 the sample rate that is currently used for playback.
static snd_mixer_t * mixhnd = NULL
 Handle to the ALSA mixer.
static snd_mixer_elem_t * elem
 ALSA mixer element for the audio device.

Detailed Description

ALSA audio output driver.

Definition in file audio_output_alsa.c.

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:05 2010 for herrie by  doxygen 1.6.3