mirror of https://github.com/stella-emu/stella.git
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:
parent
4b5324b98f
commit
0724c20181
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// 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
|
#ifdef SOUND_SUPPORT
|
||||||
|
@ -98,7 +98,11 @@ void SoundSDL::initialize()
|
||||||
SDL_AudioSpec desired;
|
SDL_AudioSpec desired;
|
||||||
#ifndef PSP
|
#ifndef PSP
|
||||||
desired.freq = frequency;
|
desired.freq = frequency;
|
||||||
|
#ifndef GP2X
|
||||||
desired.format = AUDIO_U8;
|
desired.format = AUDIO_U8;
|
||||||
|
#else
|
||||||
|
desired.format = AUDIO_U16;
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
desired.freq = 44100;
|
desired.freq = 44100;
|
||||||
desired.format = AUDIO_U16;
|
desired.format = AUDIO_U16;
|
||||||
|
|
Loading…
Reference in New Issue