Page 1 of 1

IsMusicPlaying()

Posted: Mon Mar 01, 2010 9:46 pm
by Allanon
Hello,
I've a problem with IsMusicPlaying()

I'm testing it with some mp3 musics but seems to return always True, even if the music is stopped ( using Times = 1 ).
During the playback I'm using an interval function to check (every second) if the music is ended or not, but IsMusicPlaying() returns always TRUE: any hints?

Regards,
Fabio

Re: IsMusicPlaying()

Posted: Tue Mar 02, 2010 10:59 pm
by airsoftsoftwair
Ok, seems to be a bug. I'll fix it. You can listen to the "OnMusicEnd" event as a work-around. Check the HollyAmp source code. It uses the "OnMusicEnd" event.

Re: IsMusicPlaying()

Posted: Wed Mar 03, 2010 12:20 am
by Allanon
Thank you for the suggestion Andreas, I've used another workaround right now, but OnMusicEnd is better :)