some fixes for Android
This commit is contained in:
parent
e76ce47cd6
commit
d7a41b5076
2 changed files with 9 additions and 8 deletions
|
@ -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 );
|
||||
|
|
12
src/client.h
12
src/client.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue