comparison libao2/ao_alsa9.c @ 8036:de379e6d6ca9

warning fixes
author henry
date Sat, 02 Nov 2002 10:59:27 +0000
parents b9da278e4c92
children 368019e0153a
comparison
equal deleted inserted replaced
8035:533e212cd282 8036:de379e6d6ca9
46 46
47 static snd_pcm_t *alsa_handler; 47 static snd_pcm_t *alsa_handler;
48 static snd_pcm_format_t alsa_format; 48 static snd_pcm_format_t alsa_format;
49 static snd_pcm_hw_params_t *alsa_hwparams; 49 static snd_pcm_hw_params_t *alsa_hwparams;
50 static snd_pcm_sw_params_t *alsa_swparams; 50 static snd_pcm_sw_params_t *alsa_swparams;
51 const char *alsa_device; 51 static char *alsa_device;
52 52
53 /* possible 4096, original 8192 53 /* possible 4096, original 8192
54 * was only needed for calculating chunksize? */ 54 * was only needed for calculating chunksize? */
55 static int alsa_fragsize = 4096; 55 static int alsa_fragsize = 4096;
56 /* 16 sets buffersize to 16 * chunksize is as default 1024 56 /* 16 sets buffersize to 16 * chunksize is as default 1024
824 return(0); 824 return(0);
825 } 825 }
826 826
827 return(1); /* ok, data should be accepted again */ 827 return(1); /* ok, data should be accepted again */
828 } 828 }
829
830 static int play_normal(void* data, int len);
831 static int play_mmap(void* data, int len);
829 832
830 static int play(void* data, int len, int flags) 833 static int play(void* data, int len, int flags)
831 { 834 {
832 int result; 835 int result;
833 if (ao_mmap) 836 if (ao_mmap)