IsMusicPlaying()

Report any Hollywood bugs here
Post Reply
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

IsMusicPlaying()

Post 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
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: IsMusicPlaying()

Post 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.
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: IsMusicPlaying()

Post by Allanon »

Thank you for the suggestion Andreas, I've used another workaround right now, but OnMusicEnd is better :)
Post Reply