# HG changeset patch # User Grumpy7 # Date 1371100886 -7200 # Node ID 2b4c8cdd8db048a206ecef064db0a1cc3ea35b21 # Parent 0aeac0b9ca3068df9126f15e95e9bf87a9692cf7 more sounds playing diff -r 0aeac0b9ca30 -r 2b4c8cdd8db0 AudioPlayer.cpp --- a/AudioPlayer.cpp Wed Jun 12 21:07:34 2013 +0200 +++ b/AudioPlayer.cpp Thu Jun 13 07:21:26 2013 +0200 @@ -55,7 +55,7 @@ std::array pSoundVolumeLevels = { 0.0000000f, 0.1099999f, 0.2199999f, 0.3300000f, 0.4399999f, - 0.5500000f, 0.6600000f, 0.7699999f, 0.8799999f, 0.9900000f + 0.5500000f, 0.6600000f, 0.7699999f, 0.8799999f, 0.9700000f //changed 0.9900000f to 0.9700000f. for some reason it only works for values below this }; @@ -2256,9 +2256,11 @@ do { v11 = v14[v10]; - v10++; + v12 = 16 * (v14[v10++] + 47); pMixerChannels[v11].uSourceTrackID = 0; - pMixerChannels[v11].hSample = NULL; + v13 = __OFSUB__(v10, num_same_sound_on_channels); + v6 = v10 - num_same_sound_on_channels < 0; + *(unsigned int *)((char *)&bEAXSupported + v12) = 0; } while (v10