Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadruple volume to get openal to smk levels #3910

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keeperfx_vs2010.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<ClCompile Include="src\bflib_render_gpoly.c" />
<ClCompile Include="src\bflib_render_trig.c" />
<ClCompile Include="src\bflib_server_tcp.cpp" />
<ClCompile Include="src\bflib_sndlib.c" />
<ClCompile Include="src\bflib_sndlib.cpp" />
<ClCompile Include="src\bflib_sound.c" />
<ClCompile Include="src\bflib_sprfnt.c" />
<ClCompile Include="src\bflib_string.c" />
Expand Down
6 changes: 3 additions & 3 deletions keeperfx_vs2010.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@
<ClCompile Include="src\bflib_render_trig.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\bflib_sndlib.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\bflib_sound.c">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down Expand Up @@ -738,6 +735,9 @@
<ClCompile Include="src\gui_soundmsgs.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\bflib_sndlib.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\actionpt.h">
Expand Down
2 changes: 1 addition & 1 deletion src/bflib_sndlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ extern "C" void FreeAudio() {

extern "C" void SetSoundMasterVolume(SoundVolume volume) {
try {
alListenerf(AL_GAIN, float(volume) / FULL_LOUDNESS);
alListenerf(AL_GAIN, float(volume) / 64);
const auto errcode = alGetError();
if (errcode != AL_NO_ERROR) {
throw openal_error("Cannot set master volume", errcode);
Expand Down