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 );
|
||||||
|
|
|
@ -46,12 +46,16 @@
|
||||||
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
||||||
# include "../mac/sound.h"
|
# include "../mac/sound.h"
|
||||||
# else
|
# else
|
||||||
|
# ifdef ANDROID
|
||||||
|
# include "../android/sound.h"
|
||||||
|
# else
|
||||||
# include "../linux/sound.h"
|
# include "../linux/sound.h"
|
||||||
# include <sched.h>
|
# include <sched.h>
|
||||||
# include <socket.h>
|
# include <socket.h>
|
||||||
# include <netdb.h>
|
# include <netdb.h>
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue