| 87 | } |
| 88 | |
| 89 | void ODMusic::fadeOut() |
| 90 | { |
| 91 | if (mMusicState == UNLOADED) |
| 92 | return; |
| 93 | if (mMusicState != PLAYING && mMusicState != FADE_IN) |
| 94 | return; |
| 95 | |
| 96 | if (mMusic.getVolume() > 0.0f) |
| 97 | { |
| 98 | mMusicState = FADE_OUT; |
| 99 | } |
| 100 | else |
| 101 | { |
| 102 | mMusic.stop(); |
| 103 | mMusicState = STOPPED; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | void ODMusic::update(float timeSinceLastUpdate) |
| 108 | { |