Skip to content

Commit

Permalink
For whatever reason (which escapes me now), I've added FreeBSD/VGL
Browse files Browse the repository at this point in the history
keyboard deinit/reinit into the SDL timing code 12 years ago, so that
if the SDL sound init fails, we are left with the non-working VGL
keyboard. Remove that code for good now.
  • Loading branch information
sobomax committed Sep 1, 2014
1 parent 66d8e91 commit ce74355
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sdl_snd.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ bool setsounddevice(int base, int irq, int dma, uint16_t samprate, uint16_t bufs
wanted.userdata = sud;
wanted.callback = fill_audio;

#ifdef _VGL
restorekeyb();
#endif

if ((SDL_Init(SDL_INIT_AUDIO)) >= 0)
if ((SDL_OpenAudio(&wanted, &sud->obtained)) >= 0)
result = true;
Expand All @@ -73,10 +69,6 @@ bool setsounddevice(int base, int irq, int dma, uint16_t samprate, uint16_t bufs
sud->hp_fltr = bqd_hp_init(sud->obtained.freq, 1000);
wave_device_available = true;

#ifdef _VGL
initkeyb();
#endif

return(result);
}

Expand Down

0 comments on commit ce74355

Please sign in to comment.