How2play a sound while music is playing?
#1
Question 
hello,
I need help ^^
I want to play a sound when something happens in a script.
But this sound must not stop the music or video when its playing. Nod

I think this( taken from the pythontutorial)
xbmc.Player().play(file)
will stop the music playing Shocked
so.. how can I play a sound with python while playing music in xbmc?
thx4help
Reply
#2
xbmc.playSFX() will play a .wav file without interupting playback.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
oh sweet, cheers nuka, in my script, i need to play audio attachments over playback, but first, i will pause the xbmc player playback and playsfx, thanks!
Reply
#4
Have a look in the sourcecode of pokertimer.
This stops the music and resumes in after playing the sound Nod
Reply

Logout Mark Read Team Forum Stats Members Help
How2play a sound while music is playing?0