| 34 | } |
| 35 | |
| 36 | bool ODMusic::loadFromFile(const std::string& filename) |
| 37 | { |
| 38 | if (mMusic.openFromFile(filename) == false) |
| 39 | { |
| 40 | mMusicState = UNLOADED; |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | // Set convenient values for our use. |
| 45 | mMusic.setVolume(MAX_VOLUME); |
| 46 | mMusic.setAttenuation(0); |
| 47 | mMusic.setLoop(true); |
| 48 | |
| 49 | mMusicState = STOPPED; |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | void ODMusic::play() |
| 54 | { |
no outgoing calls
no test coverage detected