File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/audio/mixer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
5
5
endif ()
6
6
7
7
8
- project ("sdl2-hyper-sonic-drivers" VERSION 0.15.1 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards" )
8
+ project ("sdl2-hyper-sonic-drivers" VERSION 0.15.2 DESCRIPTION "SDL2 based Hyper-Sonic Drivers for emulating old soundcards" )
9
9
include (TestBigEndian )
10
10
TEST_BIG_ENDIAN (IS_BIG_ENDIAN )
11
11
if (IS_BIG_ENDIAN )
Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ namespace HyperSonicDrivers::audio::mixer
118
118
const float pan = (127 .5f + m_pan) / 255 .0f ;
119
119
// TODO: create different selectable pan laws
120
120
// -3dB pan law
121
- m_volL = static_cast <uint16_t >(std::round (sqrt (1 - pan) * vol / ch_max_vol));
122
- m_volR = static_cast <uint16_t >(std::round (sqrt (pan) * vol / ch_max_vol));
121
+ m_volL = static_cast <uint16_t >(std::round (sqrt (pan) * vol / ch_max_vol));
122
+ m_volR = static_cast <uint16_t >(std::round (sqrt (1 - pan) * vol / ch_max_vol));
123
123
124
124
// adjust for master volume
125
125
const auto m_vol = m_mixer.getMasterVolume ();
You can’t perform that action at this time.
0 commit comments