| 12 | }; |
| 13 | |
| 14 | bool SoundSample::IsPlaying() |
| 15 | { |
| 16 | for (int i = 1; i < Mix_AllocateChannels(-1); i++) { |
| 17 | if (Mix_GetChunk(i) == chunk && Mix_Playing(i)) { |
| 18 | return true; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | return false; |
| 23 | }; |
| 24 | |
| 25 | void SoundSample::Play(int lVolume, int lPan) |
| 26 | { |