Beispiel #1
0
static inline void
build_device_list(int iscapture, char ***devs, int *count)
{
    const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
    free_device_list(devs, count);
    SDL_EnumUnixAudioDevices(flags, 0, test_for_mmap, devs, count);
}
Beispiel #2
0
static void
BSDAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
{
    SDL_EnumUnixAudioDevices(iscapture, 0, NULL, addfn);
}
/* Audio driver bootstrap functions */
static void
SUNAUDIO_DetectDevices(void)
{
    SDL_EnumUnixAudioDevices(1, (int (*)(int)) NULL);
}
Beispiel #4
0
static void
DSP_DetectDevices(void)
{
    SDL_EnumUnixAudioDevices(0, NULL);
}
Beispiel #5
0
/* Audio driver bootstrap functions */
static void
SUNAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
{
    SDL_EnumUnixAudioDevices(iscapture, 1, (int (*)(int fd)) NULL, addfn);
}
static void
BSDAUDIO_DetectDevices(void)
{
    SDL_EnumUnixAudioDevices(0, NULL);
}