| 142 | } |
| 143 | |
| 144 | Uint32 Sound::getLengthMS() const |
| 145 | { |
| 146 | //44100 samples per second, 2 channels (stereo) |
| 147 | //I have no idea why the *0.75 is necessary, but otherwise it's inaccurate |
| 148 | return (Uint32)((mSampleLength / 44100.0f / 2.0f * 0.75f) * 1000); |
| 149 | } |