44#include <stdio.h>
55
66#include "common.h"
7- #include "list.h"
87
98struct sound_driver {
109 const char * id ;
@@ -16,31 +15,32 @@ struct sound_driver {
1615 void (* flush )(void );
1716 void (* pause )(void );
1817 void (* resume )(void );
19- struct list_head list ;
2018};
2119
22- extern struct sound_driver sound_null ;
23- extern struct sound_driver sound_wav ;
24- extern struct sound_driver sound_aiff ;
25- extern struct sound_driver sound_file ;
26- extern struct sound_driver sound_qnx ;
27- extern struct sound_driver sound_alsa05 ;
28- extern struct sound_driver sound_oss ;
29- extern struct sound_driver sound_alsa ;
30- extern struct sound_driver sound_os2dart ;
31- extern struct sound_driver sound_win32 ;
32- extern struct sound_driver sound_pulseaudio ;
33- extern struct sound_driver sound_coreaudio ;
34- extern struct sound_driver sound_hpux ;
35- extern struct sound_driver sound_sndio ;
36- extern struct sound_driver sound_sgi ;
37- extern struct sound_driver sound_solaris ;
38- extern struct sound_driver sound_netbsd ;
39- extern struct sound_driver sound_bsd ;
40- extern struct sound_driver sound_beos ;
41- extern struct sound_driver sound_aix ;
42- extern struct sound_driver sound_ahi ;
43- extern struct sound_driver sound_sb ;
20+ extern const struct sound_driver sound_null ;
21+ extern const struct sound_driver sound_wav ;
22+ extern const struct sound_driver sound_aiff ;
23+ extern const struct sound_driver sound_file ;
24+ extern const struct sound_driver sound_qnx ;
25+ extern const struct sound_driver sound_alsa05 ;
26+ extern struct sound_driver sound_oss ;
27+ extern const struct sound_driver sound_alsa ;
28+ extern const struct sound_driver sound_os2dart ;
29+ extern const struct sound_driver sound_win32 ;
30+ extern const struct sound_driver sound_pulseaudio ;
31+ extern const struct sound_driver sound_coreaudio ;
32+ extern const struct sound_driver sound_hpux ;
33+ extern const struct sound_driver sound_sndio ;
34+ extern const struct sound_driver sound_sgi ;
35+ extern const struct sound_driver sound_solaris ;
36+ extern const struct sound_driver sound_netbsd ;
37+ extern const struct sound_driver sound_bsd ;
38+ extern const struct sound_driver sound_beos ;
39+ extern const struct sound_driver sound_aix ;
40+ extern const struct sound_driver sound_ahi ;
41+ extern const struct sound_driver sound_sb ;
42+
43+ extern const struct sound_driver * const sound_driver_list [];
4444
4545#define parm_init (p ) { char *token; for (; *(p); (p)++) { \
4646 char s[80]; strncpy(s, *(p), 79); s[79] = 0; \
@@ -64,7 +64,7 @@ static inline int is_big_endian(void) {
6464}
6565
6666void init_sound_drivers (void );
67- struct sound_driver * select_sound_driver (struct options * );
67+ const struct sound_driver * select_sound_driver (struct options * );
6868void convert_endian (unsigned char * , int );
6969
7070#endif
0 commit comments