Mercurial > mm7
comparison AudioPlayer.cpp @ 1265:2b4c8cdd8db0
more sounds playing
author | Grumpy7 |
---|---|
date | Thu, 13 Jun 2013 07:21:26 +0200 |
parents | 0aeac0b9ca30 |
children | cc9a3a24d61d |
comparison
equal
deleted
inserted
replaced
1262:0aeac0b9ca30 | 1265:2b4c8cdd8db0 |
---|---|
53 int bWalkSound; // idb | 53 int bWalkSound; // idb |
54 | 54 |
55 std::array<float, 10> pSoundVolumeLevels = | 55 std::array<float, 10> pSoundVolumeLevels = |
56 { | 56 { |
57 0.0000000f, 0.1099999f, 0.2199999f, 0.3300000f, 0.4399999f, | 57 0.0000000f, 0.1099999f, 0.2199999f, 0.3300000f, 0.4399999f, |
58 0.5500000f, 0.6600000f, 0.7699999f, 0.8799999f, 0.9900000f | 58 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 |
59 }; | 59 }; |
60 | 60 |
61 | 61 |
62 | 62 |
63 | 63 |
2254 if ( num_same_sound_on_channels > 0 ) | 2254 if ( num_same_sound_on_channels > 0 ) |
2255 { | 2255 { |
2256 do | 2256 do |
2257 { | 2257 { |
2258 v11 = v14[v10]; | 2258 v11 = v14[v10]; |
2259 v10++; | 2259 v12 = 16 * (v14[v10++] + 47); |
2260 pMixerChannels[v11].uSourceTrackID = 0; | 2260 pMixerChannels[v11].uSourceTrackID = 0; |
2261 pMixerChannels[v11].hSample = NULL; | 2261 v13 = __OFSUB__(v10, num_same_sound_on_channels); |
2262 v6 = v10 - num_same_sound_on_channels < 0; | |
2263 *(unsigned int *)((char *)&bEAXSupported + v12) = 0; | |
2262 } | 2264 } |
2263 while (v10<num_same_sound_on_channels); | 2265 while (v10<num_same_sound_on_channels); |
2264 } | 2266 } |
2265 } | 2267 } |
2266 } | 2268 } |