# Music for games

**URL:** <https://forum.kirupa.com/t/music-for-games/215187>\
**Category:** programming\
**Created:** [February 5, 2007, 8:47am UTC](https://forum.kirupa.com/t/music-for-games/215187 "2007-02-05T08:47:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuyabCo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/suyabco/32/3257_2.png) [@SuyabCo](https://forum.kirupa.com/u/SuyabCo)\
**Post date:** [February 5, 2007, 8:47am UTC](https://forum.kirupa.com/t/music-for-games/215187/1 "2007-02-05T08:47:02Z")

</div>

Hello all!!

With music, whats the code to loop a .wav, say 5 times then stop? And stop if you exit the level?

I’m sure I could find in in a tutorial, just askin here too though…
