Skip to content

Commit

Permalink
MP3 reader support using minimp3
Browse files Browse the repository at this point in the history
  • Loading branch information
lieff committed May 11, 2021
1 parent 9e27096 commit 4682f3a
Show file tree
Hide file tree
Showing 11 changed files with 3,527 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/asset_licenses.md
Expand Up @@ -11,6 +11,7 @@ All assets are under public domain (CC0):
| shader/resources/background.jpg | Arcana Dea | [Public Domain Images][4] |
| shader/resources/devices.png | Kenny.nl | [Game Icons Pack][5] |
| sound/resources/ding.flac | Kenny.nl | [Interface Sounds Pack][6] |
| sound/resources/ding.mp3 | Kenny.nl | [Interface Sounds Pack][6] |
| win32/resources/image1.jpg | Kenny.nl | [Toon Character Pack][7] |
| win32/resources/image2.jpg | Kenny.nl | [Toon Character Pack][7] |
| sound/resources/killdeer.wav | US National Park Services | [Bird sounds][8] |
Expand Down
3 changes: 3 additions & 0 deletions examples/sound/Sound.cpp
Expand Up @@ -93,6 +93,9 @@ int main()
// Play music from a flac file
playMusic("ding.flac");

// Play music from a mp3 file
playMusic("ding.mp3");

// Wait until the user presses 'enter' key
std::cout << "Press enter to exit..." << std::endl;
std::cin.ignore(10000, '\n');
Expand Down
Binary file added examples/sound/resources/ding.mp3
Binary file not shown.

0 comments on commit 4682f3a

Please sign in to comment.