|
SDL
2.0
|
Include dependency graph for loopwave.c:Go to the source code of this file.
Functions | |
| static void | quit (int rc) |
| void | fillerup (void *unused, Uint8 *stream, int len) |
| void | poked (int sig) |
| int | main (int argc, char *argv[]) |
Variables | |
| struct { | |
| SDL_AudioSpec spec | |
| Uint8 * sound | |
| Uint32 soundlen | |
| int soundpos | |
| } | wave |
| static int | done = 0 |
Definition at line 52 of file loopwave.c.
References SDL_memcpy, and wave.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 91 of file loopwave.c.
References done, sort_controllers::filename, fillerup(), i, loop(), NULL, poked(), quit(), SDL_AUDIO_PLAYING, SDL_CloseAudio, SDL_Delay, SDL_FreeWAV, SDL_GetAudioDriver, SDL_GetAudioStatus, SDL_GetCurrentAudioDriver, SDL_GetError, SDL_GetNumAudioDrivers, SDL_Init, SDL_INIT_AUDIO, SDL_LoadWAV, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_OpenAudio, SDL_PauseAudio, SDL_Quit, SDL_strlcpy, and wave.
| void poked | ( | int | sig | ) |
Definition at line 76 of file loopwave.c.
References done, loop(), SDL_AUDIO_PLAYING, and SDL_GetAudioStatus.
Referenced by main().
|
static |
|
static |
Definition at line 74 of file loopwave.c.
| Uint8* sound |
Definition at line 36 of file loopwave.c.
| Uint32 soundlen |
Definition at line 37 of file loopwave.c.
| int soundpos |
Definition at line 38 of file loopwave.c.
| SDL_AudioSpec spec |
Definition at line 35 of file loopwave.c.
Referenced by main().
| struct { ... } wave |
Referenced by fillerup(), and main().