OSS audio output driver. More...
#include "stdinc.h"#include <sys/ioctl.h>#include "audio_file.h"#include "audio_output.h"#include "config.h"#include "gui.h"
Go to the source code of this file.
Functions | |
| 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 int | dev_fd |
| File descriptor of the audio device handle. | |
| static int | mix_fd |
| File descriptor of the mixer device. | |
| static unsigned int | cur_srate = 0 |
| Sample rate of the audio device handle. | |
| static unsigned int | cur_channels = 0 |
| Amount of channels of the audio device handle. | |
OSS audio output driver.
Definition in file audio_output_oss.c.
1.6.3