spu2x-sdl: always use 16 bit formats

32 bits range is too big and requires to maximize the volume.
This commit is contained in:
Gregory Hainaut 2015-10-30 17:12:40 +01:00
parent 2a68c3585c
commit 66259dee17
1 changed files with 1 additions and 10 deletions

View File

@ -27,11 +27,7 @@
* build wx without sdl support, though) and onepad at the time of writing this. */
#include <SDL.h>
#include <SDL_audio.h>
#if SDL_MAJOR_VERSION >= 2
typedef StereoOut32 StereoOut_SDL;
#else
typedef StereoOut16 StereoOut_SDL;
#endif
namespace {
/* Since spu2 only ever outputs stereo, we don't worry about emitting surround sound
@ -42,12 +38,7 @@ namespace {
* sample count and SDL may provide otherwise. Pulseaudio will cut this value in half if
* PA_STREAM_ADJUST_LATENCY is set in the backened, for example. */
const Uint16 desiredSamples = 1024;
const Uint16 format =
#if SDL_MAJOR_VERSION >= 2
AUDIO_S32SYS;
#else
AUDIO_S16SYS;
#endif
const Uint16 format = AUDIO_S16SYS;
Uint16 samples = desiredSamples;