Added ifndef for GP2X 16 bit sound.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1244 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
azaballa 2006-12-26 22:57:31 +00:00
parent 4b5324b98f
commit 0724c20181
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: SoundSDL.cxx,v 1.33 2006-12-08 16:48:56 stephena Exp $
// $Id: SoundSDL.cxx,v 1.34 2006-12-26 22:57:31 azaballa Exp $
//============================================================================
#ifdef SOUND_SUPPORT
@ -98,7 +98,11 @@ void SoundSDL::initialize()
SDL_AudioSpec desired;
#ifndef PSP
desired.freq = frequency;
#ifndef GP2X
desired.format = AUDIO_U8;
#else
desired.format = AUDIO_U16;
#endif
#else
desired.freq = 44100;
desired.format = AUDIO_U16;