static int init(int argc, char **argv) {
pthread_mutex_lock(&alsa_mutex);
- debug(2,"audio_alsa init called.");
+ // debug(2,"audio_alsa init called.");
const char *str;
int value;
}
static void deinit(void) {
- debug(2,"audio_alsa deinit called.");
+ // debug(2,"audio_alsa deinit called.");
stop();
if (hardware_mixer && alsa_mix_handle) {
snd_mixer_close(alsa_mix_handle);
}
static void start(int sample_rate) {
- debug(2,"audio_alsa start called.");
+ // debug(2,"audio_alsa start called.");
if (sample_rate != 44100)
die("Unexpected sample rate %d -- only 44,100 supported!", sample_rate);
desired_sample_rate = sample_rate; // must be a variable
}
static void flush(void) {
- debug(2,"audio_alsa flush called.");
+ // debug(2,"audio_alsa flush called.");
pthread_mutex_lock(&alsa_mutex);
int derr;
if (hardware_mixer && alsa_mix_handle) {
static void mute(int do_mute) {
pthread_mutex_lock(&alsa_mutex);
- debug(2,"audio_alsa mute called.");
+ // debug(2,"audio_alsa mute called.");
if (hardware_mixer && alsa_mix_handle) {
if (do_mute) {
// debug(1,"Mute");