forked from mirrors/kolyah35-minecraft-pe-0.6.1
Fix: Sounds
Problem: its not working xD
This commit is contained in:
parent
d0995643a5
commit
d0f6a9b805
4 changed files with 13 additions and 9 deletions
|
|
@ -737,6 +737,10 @@ void Minecraft::tickInput() {
|
|||
printf("%d\t%f\n", i, noise.grad2(i, 3, 8));
|
||||
*/
|
||||
}
|
||||
|
||||
// Change distance
|
||||
if (key == Keyboard::KEY_F)
|
||||
options.viewDistance = (options.viewDistance + 1) % 4;
|
||||
#endif
|
||||
#if defined(WIN32)
|
||||
if (key == Keyboard::KEY_F) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
void destroy() const {
|
||||
if (isValid()) {
|
||||
delete buffer;
|
||||
delete buffer;
|
||||
buffer = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -61,7 +61,7 @@ private:
|
|||
mutable char* buffer;
|
||||
};
|
||||
|
||||
#if !defined(PRE_ANDROID23) && !defined(__APPLE__) && !defined(RPI)
|
||||
#if !defined(PRE_ANDROID23) && !defined(__APPLE__) && !defined(RPI)
|
||||
|
||||
extern SoundDesc SA_cloth1;
|
||||
extern SoundDesc SA_cloth2;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#if defined(ANDROID) && !defined(PRE_ANDROID23)
|
||||
#include "../../platform/audio/SoundSystemSL.h"
|
||||
#elif defined(__APPLE__)
|
||||
#elif defined(__APPLE__) || defined (PLATFORM_DESKTOP)
|
||||
#include "../../platform/audio/SoundSystemAL.h"
|
||||
#else
|
||||
#include "../../platform/audio/SoundSystem.h"
|
||||
|
|
@ -23,7 +23,7 @@ class SoundEngine
|
|||
|
||||
#if defined(ANDROID) && !defined(PRE_ANDROID23) && !defined(RPI)
|
||||
SoundSystemSL soundSystem;
|
||||
#elif defined(__APPLE__)
|
||||
#elif defined(__APPLE__) || defined (PLATFORM_DESKTOP)
|
||||
SoundSystemAL soundSystem;
|
||||
#else
|
||||
SoundSystem soundSystem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue