forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


MP3 PLaylist

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Mon Nov 29, 2010 2:14 am    Post subject: MP3 PLaylist Reply with quote

Hi, im trying to make a prog that plays a playlist of mp3 files.
i'm using VDSMPEG.DLL and all seems to work but i have a problem.
With some files it seems that the DLL cant find the end of file because i cant skip to the next file.
How can i detect when is the end of a MP3 file?
Is there any Playlist example?

Thanks a lot in advance...

Marcelo.
Back to top
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Wed Dec 01, 2010 12:36 pm    Post subject: Reply with quote

Add: I can't use PLAY with the ,WAIT statement because i need to refresh current position in a "timer"...
Any help on how to detect when a file was totally played and finished?
Back to top
View user's profile Send private message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Dec 02, 2010 9:25 am    Post subject: Reply with quote

Hi I have a copy of vdsmp3.dll...

Which allows you to :

COMMANDS
MP3 MVOLUME, <volume>
Sets the Windows master volume to <volume>. This should be 100 or below. This only seems to work after an MP3 started playing.

MP3 OPEN{<slot number 2/3>}, <filename>
Opens the MP3 file <filename> in the slot <slot number 2/3>.

MP3 PAUSE{<slot number 2/3>}
Pauses playing the slot <slot number 2/3>.

MP3 PLAY{<slot number 2/3>}
Starts playing the slot <slot number 2/3>.

MP3 SEEK{<slot number 2/3>}, <position>
Seeks the slot <slot number 2/3> to the position <position>. This should be 100 or below.

MP3 STOP{<slot number 2/3>}
Stops playing the slot <slot number 1-3>.

MP3 VOLUME{<slot number 2/3>}, <volume>
Sets the volume of the slot <slot number 2/3> to <volume>. This should be 100 or below.

FUNCTIONS
@MP3(MVOLUME)
Returns the Windows master volume, which could only be 100 or below.

@MP3(TIME{<slot number 2/3>})
Returns the duration of the file in the slot <slot number 2/3>, in the format h:m:s.

@MP3(TIMEPOS{<slot number 2/3>})
Returns the current position in the file in the slot <slot number 2/3>, in the format h:m:s.

@MP3(POS{<slot number 2/3>})
Returns the current position of the file in the slot <slot number 2/3>, which could only be 100 or below.

@MP(INFO{<slot number 2/3>}, <info kind>)
The ID3 tag of the file in the slot <slot number 2/3> is read, the result depends on <info kind>.
<info kind> can be:
album – returns the name of the album the file belongs to
artist – returns the artist of the file
comments – returns the comment in the file
genre – returns the genre number of the file
title – returns the title of the file
year – returns the year of the file

EVENTS
EOF{<slot number 2/3>}
Occurs when the end of the file in the slot <slot number 2/3> is reached.

PAUSED{<slot number 2/3>}
Occurs when the file in the slot <slot number 2/3> is paused.

STOPPED{<slot number 2/3>}
Occurs when the file in the slot <slot number 2/3> is stopped.

It also uses the xaudio.dll, which i think you might have to buy a license for now, not sure... anyone any more info on the license for it ?


The vdsmp3.dll was written by Tommy Sools, I could zip it up and uplaod it... but I would like clarification on the license for the xaudio.dll....


You could also use vdsmedia.dll from Extreme Senses, again i have a copy of it...

It will handle loads and loads of different formats, mp3, ogg, wav etc etc

regards

Nathan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Thu Dec 02, 2010 4:33 pm    Post subject: Reply with quote

Thanks!!
VDSMP3 can help me too 'cause the EOF Event is what i'm looking for...
Can you send me a copy of it?
Back to top
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Thu Dec 02, 2010 4:40 pm    Post subject: Reply with quote

Sorry, i already have it.
I'll take a look to it...

Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group