src/audio/SDL_audiodev.c
changeset 7860 2b0bcdea3a79
parent 7191 75360622e65f
child 8093 b43765095a6f
equal deleted inserted replaced
7859:af63b63e7aac 7860:2b0bcdea3a79
    44 #endif
    44 #endif
    45 #ifndef _PATH_DEV_AUDIO
    45 #ifndef _PATH_DEV_AUDIO
    46 #define _PATH_DEV_AUDIO "/dev/audio"
    46 #define _PATH_DEV_AUDIO "/dev/audio"
    47 #endif
    47 #endif
    48 
    48 
    49 static inline void
    49 static SDL_INLINE void
    50 test_device(const char *fname, int flags, int (*test) (int fd),
    50 test_device(const char *fname, int flags, int (*test) (int fd),
    51             SDL_AddAudioDevice addfn)
    51             SDL_AddAudioDevice addfn)
    52 {
    52 {
    53     struct stat sb;
    53     struct stat sb;
    54     if ((stat(fname, &sb) == 0) && (S_ISCHR(sb.st_mode))) {
    54     if ((stat(fname, &sb) == 0) && (S_ISCHR(sb.st_mode))) {