[21 Sep 2006] MP3 file playing

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
xabierpayet
Posts: 270
Joined: Fri Feb 24, 2012 9:34 am

[21 Sep 2006] MP3 file playing

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

[25 Sep 2006] Re: MP3 file playing

Post 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.
Locked