545 files changed, 230976 insertions, 0 deletions
diff --git a/amadec/include/alsa-out.h b/amadec/include/alsa-out.h new file mode 100755 index 0000000..1be9dd1 --- a/dev/null +++ b/amadec/include/alsa-out.h @@ -0,0 +1,26 @@ +#ifndef ALSA_OUT_H +#define ALSA_OUT_H + +#define PCM_DEVICE_DEFAULT "default" +//#define PCM_DEVICE_DEFAULT "hw:0,2" +#define OUTPUT_BUFFER_SIZE (8*1024) + +typedef struct { + pthread_t playback_tid; + pthread_mutex_t playback_mutex; + pthread_cond_t playback_cond; + snd_pcm_t *handle; + snd_pcm_format_t format; + size_t bits_per_sample; + size_t bits_per_frame; + int buffer_size; + unsigned int channelcount; + unsigned int rate; + int oversample; + int realchanl; + int flag; + int stop_flag; + int pause_flag; + int wait_flag; +} alsa_param_t; +#endif |