Page 1 of 1
[21 Sep 2006] MP3 file playing
Posted: Sat Jun 13, 2020 5:31 pm
by xabierpayet
Note: This is an archived post that was originally sent to the Hollywood mailing list on 21 Sep 2006 17:35:48 +0200
How i can know if an mp3 file is playing while my hollywood script is running? Anyone can help?
[25 Sep 2006] Re: MP3 file playing
Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 25 Sep 2006 13:35:20 +0200 (CEST)
Hi,
I'm still on vacation and haven't answered all e-mails yet. I'll do this next week when I get back.
Concerning how to check if an MP3 is playing, here's an idea (not sure if it works the way you want...):
Code: Select all
GetAttribute(#MUSIC, <mp3id>, #ATTRPOSITION)
If the MP3 is not currently playing, this function should return -1 IIRC. If the return value is <> -1, the MP3 is playing.