diff AudioPlayer.cpp @ 1265:2b4c8cdd8db0

more sounds playing
author Grumpy7
date Thu, 13 Jun 2013 07:21:26 +0200
parents 0aeac0b9ca30
children cc9a3a24d61d
line wrap: on
line diff
--- 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<float, 10> 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<num_same_sound_on_channels);
           }