| 246 | } |
| 247 | |
| 248 | void cSound_Amiga::Music_SetVolume(int16 pChannel, int16 pVolume) { |
| 249 | if (!mCurrentMusic) |
| 250 | return; |
| 251 | |
| 252 | if (pChannel == -1) { |
| 253 | for (int Ch = 0; Ch < mCurrentMusic->NUM_VOICES; ++Ch) { |
| 254 | mCurrentMusic->volumeMax[Ch] = pVolume; |
| 255 | } |
| 256 | return; |
| 257 | } |
| 258 | |
| 259 | mCurrentMusic->volumeMax[pChannel] = pVolume; |
| 260 | } |
| 261 | |
| 262 | int16 cSound_Amiga::Music_GetVolume(int16 pChannel) { |
| 263 | if (!mCurrentMusic) |
no outgoing calls
no test coverage detected