SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | quit (int rc) |
void | fillerup (void *_pos, Uint8 *stream, int len) |
void | poked (int sig) |
static const char * | devtypestr (int iscapture) |
static void | iteration () |
int | main (int argc, char *argv[]) |
Variables | |
static SDL_AudioSpec | spec |
static Uint8 * | sound = NULL |
static Uint32 | soundlen = 0 |
static int | posindex = 0 |
static Uint32 | positions [64] |
static int | done = 0 |
|
static |
Definition at line 78 of file testaudiohotplug.c.
Referenced by iteration().
Definition at line 46 of file testaudiohotplug.c.
References SDL_memcpy, sound, and soundlen.
Referenced by iteration().
|
static |
Definition at line 84 of file testaudiohotplug.c.
References SDL_Event::adevice, SDL_AudioSpec::callback, devtypestr(), done, e, fillerup(), SDL_AudioDeviceEvent::iscapture, SDL_Event::key, SDL_KeyboardEvent::keysym, loop(), NULL, posindex, positions, SDL_AUDIODEVICEADDED, SDL_AUDIODEVICEREMOVED, SDL_CloseAudioDevice, SDL_GetAudioDeviceName, SDL_GetError, SDL_KEYUP, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, SDL_OpenAudioDevice, SDL_PauseAudioDevice, SDL_PollEvent, SDL_QUIT, SDLK_ESCAPE, SDL_Keysym::sym, SDL_Event::type, SDL_AudioSpec::userdata, and SDL_AudioDeviceEvent::which.
Referenced by main(), and video_getSetWindowData().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 137 of file testaudiohotplug.c.
References done, sort_controllers::filename, i, iteration(), loop(), NULL, poked(), quit(), SDL_CreateWindow, SDL_Delay, SDL_FreeWAV, SDL_GetAudioDriver, SDL_GetCurrentAudioDriver, SDL_GetError, SDL_GetNumAudioDrivers, SDL_Init, SDL_INIT_AUDIO, SDL_INIT_VIDEO, SDL_LoadWAV, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_MinimizeWindow, SDL_Quit, SDL_QuitSubSystem, SDL_strlcpy, SDL_WINDOWPOS_UNDEFINED, sound, and soundlen.
void poked | ( | int | sig | ) |
|
static |
Definition at line 39 of file testaudiohotplug.c.
References SDL_Quit, and SDLCALL.
Referenced by main().
|
static |
Definition at line 70 of file testaudiohotplug.c.
Referenced by iteration(), main(), and poked().
|
static |
Definition at line 34 of file testaudiohotplug.c.
Referenced by iteration().
|
static |
Definition at line 35 of file testaudiohotplug.c.
Referenced by iteration().
Definition at line 31 of file testaudiohotplug.c.
Referenced by fillerup(), and main().
|
static |
Definition at line 32 of file testaudiohotplug.c.
Referenced by fillerup(), and main().
|
static |
Definition at line 30 of file testaudiohotplug.c.