diff options
author | neonloop | 2021-07-03 20:20:32 +0000 |
---|---|---|
committer | neonloop | 2021-07-03 20:20:32 +0000 |
commit | e774285eb8d6401870df282cb8d4e70612199eb0 (patch) | |
tree | 15fcf609be70352196d06e43e0e4491e10155ba8 /frontend/plat_trimui.c | |
parent | 0398338eac60a820bd636c23af34fa76f047681a (diff) | |
download | picogpsp-e774285eb8d6401870df282cb8d4e70612199eb0.tar.gz picogpsp-e774285eb8d6401870df282cb8d4e70612199eb0.tar.bz2 picogpsp-e774285eb8d6401870df282cb8d4e70612199eb0.zip |
Revert "USB headphone detection"
This reverts commit 960d776dfcd5d2f071107be1ff08b1a16d275a3f.
This is now handled in custom SDL, so each emulator doesn't need to
handle it.
Diffstat (limited to 'frontend/plat_trimui.c')
-rw-r--r-- | frontend/plat_trimui.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/frontend/plat_trimui.c b/frontend/plat_trimui.c index 2925f5f..bdd5a92 100644 --- a/frontend/plat_trimui.c +++ b/frontend/plat_trimui.c @@ -1,7 +1,6 @@ #include <SDL/SDL.h> #include "common.h" -#include "frontend/audio_hotplug.h" #include "frontend/main.h" #include "frontend/plat.h" #include "frontend/scale.h" @@ -186,7 +185,6 @@ int plat_sound_init(void) if (SDL_OpenAudio(&spec, NULL) < 0) { plat_sound_finish(); - fprintf(stderr, "SDL audio failed to open: %s\n", SDL_GetError()); return -1; } @@ -194,12 +192,6 @@ int plat_sound_init(void) return 0; } -static void plat_sound_reinit(bool has_usb_audio) { - plat_sound_finish(); - audio_hotplug_set_device(has_usb_audio); - plat_sound_init(); -} - float plat_sound_capacity(void) { int buffered = 0; @@ -213,7 +205,6 @@ float plat_sound_capacity(void) void plat_sound_write(void *data, int bytes) { short *sound_data = (short *)data; - audio_hotplug_check(plat_sound_reinit); SDL_LockAudio(); while (bytes > 0) { |