some fixes for Android

This commit is contained in:
Volker Fischer 2014-01-21 17:25:46 +00:00
parent e76ce47cd6
commit d7a41b5076
2 changed files with 9 additions and 8 deletions

View File

@ -219,10 +219,7 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
CSoundBase::Init ( iOpenSLBufferSizeMono );
// set internal buffer size value and calculate stereo buffer size
// TODO: somehow if the following line is enabled, we get a crash...
// iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono;
iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono;
// create memory for intermediate audio buffer
vecsTmpAudioSndCrdStereo.Init ( iOpenSLBufferSizeStereo );

View File

@ -46,10 +46,14 @@
# if defined ( __APPLE__ ) || defined ( __MACOSX )
# include "../mac/sound.h"
# else
# include "../linux/sound.h"
# include <sched.h>
# include <socket.h>
# include <netdb.h>
# ifdef ANDROID
# include "../android/sound.h"
# else
# include "../linux/sound.h"
# include <sched.h>
# include <socket.h>
# include <netdb.h>
# endif
# endif
# endif
#endif