| 159 | } |
| 160 | |
| 161 | void Sound::setPosition(Uint32 newPosition) |
| 162 | { |
| 163 | mSamplePos = newPosition; |
| 164 | if (mSamplePos >= mSampleLength) { |
| 165 | //got to or beyond the end of the sample. stop playing |
| 166 | playing = false; |
| 167 | mSamplePos = 0; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | Uint32 Sound::getLength() const |
| 172 | { |
no outgoing calls
no test coverage detected