SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | quit (int rc) |
static void | close_audio () |
static void | open_audio () |
static void | reopen_audio () |
void | fillerup (void *unused, Uint8 *stream, int len) |
int | main (int argc, char *argv[]) |
Variables | |
struct { | |
SDL_AudioSpec spec | |
Uint8 * sound | |
Uint32 soundlen | |
int soundpos | |
} | wave |
static SDL_AudioDeviceID | device |
static int | done = 0 |
|
static |
Definition at line 48 of file loopwave.c.
References device, and SDL_CloseAudioDevice.
Referenced by main(), and reopen_audio().
Definition at line 80 of file loopwave.c.
References SDL_memcpy, and wave.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 114 of file loopwave.c.
References SDL_Event::adevice, close_audio(), device, done, sort_controllers::filename, fillerup(), i, SDL_AudioDeviceEvent::iscapture, loop(), NULL, open_audio(), quit(), reopen_audio(), SDL_AUDIODEVICEADDED, SDL_AUDIODEVICEREMOVED, SDL_Delay, SDL_FlushEvents, SDL_FreeWAV, SDL_GetAudioDriver, SDL_GetCurrentAudioDriver, SDL_GetError, SDL_GetNumAudioDrivers, SDL_Init, SDL_INIT_AUDIO, SDL_INIT_EVENTS, SDL_LoadWAV, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_PollEvent, SDL_Quit, SDL_QUIT, SDL_strlcpy, SDL_Event::type, wave, and SDL_AudioDeviceEvent::which.
|
static |
Definition at line 57 of file loopwave.c.
References device, NULL, quit(), SDL_FALSE, SDL_FreeWAV, SDL_GetError, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, SDL_OpenAudioDevice, SDL_PauseAudioDevice, and wave.
Referenced by main(), and reopen_audio().
|
static |
Definition at line 41 of file loopwave.c.
References SDL_Quit.
Referenced by main(), and open_audio().
|
static |
Definition at line 72 of file loopwave.c.
References close_audio(), open_audio(), and SDLCALL.
Referenced by main().
|
static |
Definition at line 37 of file loopwave.c.
Referenced by audio_lockUnlockOpenAudioDevice(), audio_openCloseAndGetAudioStatus(), audio_openCloseAudioDeviceConnected(), close_audio(), createDevice(), GetDeviceForIndex(), main(), open_audio(), open_audio_device(), SDL_BufferQueueDrainCallback(), SDL_BufferQueueFillCallback(), SDL_CaptureAudio(), SDL_ClearQueuedAudio(), SDL_DequeueAudio(), SDL_GetAudioDeviceStatus(), SDL_GetQueuedAudioSize(), SDL_LockAudioDevice(), SDL_MixAudio(), SDL_PauseAudioDevice(), SDL_QueueAudio(), SDL_RemoveAudioDevice(), SDL_RunAudio(), SDL_SYS_AddJoystickDevice(), SDL_SYS_GetInstanceIdOfDeviceIndex(), SDL_SYS_JoystickClose(), SDL_SYS_JoystickGetDeviceGUID(), SDL_SYS_JoystickNameForDeviceIndex(), SDL_SYS_JoystickOpen(), SDL_SYS_JoystickUpdate(), SDL_UnlockAudioDevice(), and SteamControllerConnectedCallback().
|
static |
Definition at line 102 of file loopwave.c.
Referenced by main().
Uint8* sound |
Definition at line 32 of file loopwave.c.
Uint32 soundlen |
Definition at line 33 of file loopwave.c.
int soundpos |
Definition at line 34 of file loopwave.c.
SDL_AudioSpec spec |
Definition at line 31 of file loopwave.c.
Referenced by DUMMYAUDIO_CaptureFromDevice(), and main().
struct { ... } wave |
Referenced by fillerup(), main(), and open_audio().