Merge branch 'main' of https://github.com/itsRevela/MinecraftConsoles
This commit is contained in:
commit
812b3ea6af
4 files changed
+18
-11
No files matched your search
@@ -260,9 +260,9 @@ void SoundEngine::updateMiniAudio()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
float finalVolume = s->info.volume * m_MasterEffectsVolume;
|
float finalVolume = s->info.volume * m_MasterEffectsVolume * SFX_VOLUME_MULTIPLIER;
|
||||||
if (finalVolume > 1.0f)
|
if (finalVolume > SFX_MAX_GAIN)
|
||||||
finalVolume = 1.0f;
|
finalVolume = SFX_MAX_GAIN;
|
||||||
|
|
||||||
ma_sound_set_volume(&s->sound, finalVolume);
|
ma_sound_set_volume(&s->sound, finalVolume);
|
||||||
ma_sound_set_pitch(&s->sound, s->info.pitch);
|
ma_sound_set_pitch(&s->sound, s->info.pitch);
|
||||||
@@ -557,10 +557,13 @@ void SoundEngine::play(int iSound, float x, float y, float z, float volume, floa
|
|||||||
}
|
}
|
||||||
|
|
||||||
ma_sound_set_spatialization_enabled(&s->sound, MA_TRUE);
|
ma_sound_set_spatialization_enabled(&s->sound, MA_TRUE);
|
||||||
|
ma_sound_set_min_distance(&s->sound, SFX_3D_MIN_DISTANCE);
|
||||||
|
ma_sound_set_max_distance(&s->sound, SFX_3D_MAX_DISTANCE);
|
||||||
|
ma_sound_set_rolloff(&s->sound, SFX_3D_ROLLOFF);
|
||||||
|
|
||||||
float finalVolume = volume * m_MasterEffectsVolume;
|
float finalVolume = volume * m_MasterEffectsVolume * SFX_VOLUME_MULTIPLIER;
|
||||||
if (finalVolume > 1.0f)
|
if (finalVolume > SFX_MAX_GAIN)
|
||||||
finalVolume = 1.0f;
|
finalVolume = SFX_MAX_GAIN;
|
||||||
|
|
||||||
ma_sound_set_volume(&s->sound, finalVolume);
|
ma_sound_set_volume(&s->sound, finalVolume);
|
||||||
ma_sound_set_pitch(&s->sound, pitch);
|
ma_sound_set_pitch(&s->sound, pitch);
|
||||||
|
|||||||
@@ -6,6 +6,12 @@ using namespace std;
|
|||||||
|
|
||||||
#include "miniaudio.h"
|
#include "miniaudio.h"
|
||||||
|
|
||||||
|
constexpr float SFX_3D_MIN_DISTANCE = 1.0f;
|
||||||
|
constexpr float SFX_3D_MAX_DISTANCE = 16.0f;
|
||||||
|
constexpr float SFX_3D_ROLLOFF = 0.5f;
|
||||||
|
constexpr float SFX_VOLUME_MULTIPLIER = 1.5f;
|
||||||
|
constexpr float SFX_MAX_GAIN = 1.5f;
|
||||||
|
|
||||||
enum eMUSICFILES
|
enum eMUSICFILES
|
||||||
{
|
{
|
||||||
eStream_Overworld_Calm1 = 0,
|
eStream_Overworld_Calm1 = 0,
|
||||||
|
|||||||
@@ -1298,10 +1298,8 @@ void IUIScene_AbstractContainerMenu::onMouseTick()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vPointerPos.x = floor(vPointerPos.x);
|
vPointerPos.x = static_cast<float>(floor(vPointerPos.x + 0.5f));
|
||||||
vPointerPos.x += ( static_cast<int>(vPointerPos.x)%2);
|
vPointerPos.y = static_cast<float>(floor(vPointerPos.y + 0.5f));
|
||||||
vPointerPos.y = floor(vPointerPos.y);
|
|
||||||
vPointerPos.y += ( static_cast<int>(vPointerPos.y)%2);
|
|
||||||
m_pointerPos = vPointerPos;
|
m_pointerPos = vPointerPos;
|
||||||
|
|
||||||
adjustPointerForSafeZone();
|
adjustPointerForSafeZone();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
This project contains the source code of Minecraft Legacy Console Edition v1.6.0560.0 (TU19) with some fixes and improvements applied.
|
This project contains the source code of Minecraft Legacy Console Edition v1.6.0560.0 (TU19) with some fixes and improvements applied.
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
Windows users can download our [Nightly Build](https://github.com/smartcmd/MinecraftConsoles/releases/tag/nightly)! Simply download the `.zip` file and extract it to a folder where you'd like to keep the game. You can set your username in `username.txt` (you'll have to make this file)
|
Windows users can download our [Nightly Build](https://github.com/itsRevela/MinecraftConsoles/releases/tag/Nightly)! Simply download the `.zip` file and extract it to a folder where you'd like to keep the game. You can set your username in `username.txt` (you'll have to make this file)
|
||||||
|
|
||||||
## Platform Support
|
## Platform Support
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user