# Stopping all but one sound

**URL:** <https://forum.kirupa.com/t/stopping-all-but-one-sound/189980>\
**Category:** Uncategorized\
**Created:** [June 7, 2006, 6:20pm UTC](https://forum.kirupa.com/t/stopping-all-but-one-sound/189980 "2006-06-07T18:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [June 7, 2006, 6:20pm UTC](https://forum.kirupa.com/t/stopping-all-but-one-sound/189980/1 "2006-06-07T18:20:11Z")

</div>

Hey all,

I have a background sound that I want playing all of the time. I have other sounds that play when a button is clicked. I created a function that plays a particular sound to its’ related button. But inside of the function I also have a stopAllSounds(); function to stop the sounds of the other buttons. And of course, it stops the background sound.

Can anyone tell me a way to keep playing the background sound?

Thanks in advanced.
