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 );
|
CSoundBase::Init ( iOpenSLBufferSizeMono );
|
||||||
|
|
||||||
// set internal buffer size value and calculate stereo buffer size
|
// set internal buffer size value and calculate stereo buffer size
|
||||||
|
iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono;
|
||||||
// TODO: somehow if the following line is enabled, we get a crash...
|
|
||||||
|
|
||||||
// iOpenSLBufferSizeStereo = 2 * iOpenSLBufferSizeMono;
|
|
||||||
|
|
||||||
// create memory for intermediate audio buffer
|
// create memory for intermediate audio buffer
|
||||||
vecsTmpAudioSndCrdStereo.Init ( iOpenSLBufferSizeStereo );
|
vecsTmpAudioSndCrdStereo.Init ( iOpenSLBufferSizeStereo );
|
||||||
|
|
12
src/client.h
12
src/client.h
|
@ -46,10 +46,14 @@
|
||||||
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||||
# include "../mac/sound.h"
|
# include "../mac/sound.h"
|
||||||
# else
|
# else
|
||||||
# include "../linux/sound.h"
|
# ifdef ANDROID
|
||||||
# include <sched.h>
|
# include "../android/sound.h"
|
||||||
# include <socket.h>
|
# else
|
||||||
# include <netdb.h>
|
# include "../linux/sound.h"
|
||||||
|
# include <sched.h>
|
||||||
|
# include <socket.h>
|
||||||
|
# include <netdb.h>
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue