2 * Copyright (C) 2015 "IoT.bzh"
3 * Author "Manuel Bachmann"
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #include <alsa/asoundlib.h>
25 #include "local-def.h"
27 typedef struct dev_ctx_alsa dev_ctx_alsa_T;
32 snd_pcm_hw_params_t *params;
33 snd_mixer_elem_t *mixer_elm;
34 snd_mixer_elem_t *mixer_elm_m;
38 unsigned char thr_should_run;
39 unsigned char thr_finished;
42 STATIC void* _alsa_play_thread_fn (void *);
43 PUBLIC int _alsa_get_volume (unsigned int, unsigned int);
44 PUBLIC unsigned char _alsa_get_mute (unsigned int);
46 static struct dev_ctx_alsa **dev_ctx_a = NULL;
48 #endif /* AUDIO_ALSA_H */