Play a sound without stopping iTunes background music

You must Login before you can answer or comment on any questions.

I have searched but have not been able to find an answer.

I need to provide simple feedback sounds for the user but I don't want to interrupt their audio music playback.

Ideally, it would pause whatever background music is playing, play my beep, then resume playback.

If this is not possible, I would be happy just overlaying my sound over the music.

How do I do this?

— asked 10 months ago by raul silva
1 Comment
  • Do you have any code where you're attempting to do this? Have you tried playing a sound while music is playing already?

    — commented 10 months ago by Anthony Decena

1 Answer

Sure, this will play a sound and stop the background song playing from the Music app:

mySound = Ti.Media.createSound({url : 'audio/bell.aiff'});
mySound.play();

Your Answer

Think you can help? Login to answer this question!