Skip to content

Commit

Permalink
Update SDL.c
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 authored Aug 29, 2018
1 parent b72d0e3 commit dfa5676
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions daphne/src/SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,6 @@ SDL_InitSubSystem(uint32_t flags)
flags |= SDL_INIT_EVENTS;
}

/* Initialize the audio subsystem */
if ((flags & SDL_INIT_AUDIO)){
#if !SDL_AUDIO_DISABLED
if (SDL_PrivateShouldInitSubsystem(SDL_INIT_AUDIO)) {
if (SDL_AudioInit(NULL) < 0) {
return (-1);
}
}
SDL_PrivateSubsystemRefCountIncr(SDL_INIT_AUDIO);
#else
return SDL_SetError("SDL not built with audio support");
#endif
}

return (0);
}

Expand All @@ -124,14 +110,6 @@ SDL_Init(uint32_t flags)
void
SDL_QuitSubSystem(uint32_t flags)
{
#if !SDL_AUDIO_DISABLED
if ((flags & SDL_INIT_AUDIO)) {
if (SDL_PrivateShouldQuitSubsystem(SDL_INIT_AUDIO)) {
SDL_AudioQuit();
}
SDL_PrivateSubsystemRefCountDecr(SDL_INIT_AUDIO);
}
#endif
}

void
Expand Down

0 comments on commit dfa5676

Please sign in to comment.