/////////////////////////////////////////////////////// Entry point of application \return Application exit code ///////////////////////////////////////////////////////
| 81 | /// |
| 82 | //////////////////////////////////////////////////////////// |
| 83 | int main() |
| 84 | { |
| 85 | // Play a sound |
| 86 | playSound(); |
| 87 | |
| 88 | // Play music from an ogg file |
| 89 | playMusic("doodle_pop.ogg"); |
| 90 | |
| 91 | // Play music from a flac file |
| 92 | playMusic("ding.flac"); |
| 93 | |
| 94 | // Play music from a mp3 file |
| 95 | playMusic("ding.mp3"); |
| 96 | |
| 97 | // Wait until the user presses 'enter' key |
| 98 | std::cout << "Press enter to exit..." << std::endl; |
| 99 | std::cin.ignore(10'000, '\n'); |
| 100 | } |