# How to use roAudioResource and mixing of sounds?

**URL:** <https://forum.developer.roku.com/t/how-to-use-roaudioresource-and-mixing-of-sounds/2585>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [May 18, 2013, 12:51am UTC](https://forum.developer.roku.com/t/how-to-use-roaudioresource-and-mixing-of-sounds/2585 "2013-05-18T00:51:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbechtinger](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gbechtinger](https://forum.developer.roku.com/u/gbechtinger)\
**Post date:** [May 18, 2013, 12:51am UTC](https://forum.developer.roku.com/t/how-to-use-roaudioresource-and-mixing-of-sounds/2585/1 "2013-05-18T00:51:49Z")

</div>

Hi!  
I know that roAudioResource cannot mix sounds, and while one sound is playing, all the others stop. The question is: How I’ll use roAudioResource to play multiple sounds of my game?

Thanks  
Guilherme.

---

<div class="post-metadata">

**Author:** ![BradC](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@BradC](https://forum.developer.roku.com/u/BradC)\
**Post date:** [May 18, 2013, 11:48pm UTC](https://forum.developer.roku.com/t/how-to-use-roaudioresource-and-mixing-of-sounds/2585/2 "2013-05-18T23:48:56Z")

</div>

if you look at the beep example in the SDK, there is example code for playing multiple audio events at the same time. Some limitations with that, volume control doesn’t work (you’ll get 100% volume whether you want it or not), it only works on roku 2, and it will hard crash older roku boxes.

I had better luck just playing one sound at a time. Did this by prioritizing sounds to check what is playing, and if something with more priority is already playing, don’t play the new sound.

good luck!

---

<div class="post-metadata">

**Author:** ![gbechtinger](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gbechtinger](https://forum.developer.roku.com/u/gbechtinger)\
**Post date:** [May 19, 2013, 4:03pm UTC](https://forum.developer.roku.com/t/how-to-use-roaudioresource-and-mixing-of-sounds/2585/3 "2013-05-19T16:03:35Z")

</div>

> “BradC” wrote:  
> if you look at the beep example in the SDK, there is example code for playing multiple audio events at the same time. Some limitations with that, volume control doesn’t work (you’ll get 100% volume whether you want it or not), it only works on roku 2, and it will hard crash older roku boxes.
> 
> I had better luck just playing one sound at a time. Did this by prioritizing sounds to check what is playing, and if something with more priority is already playing, don’t play the new sound.
> 
> good luck!  
> Thanks for the reply, I’ll try the sound priority method.
