| View previous topic :: View next topic |
| Author |
Message |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Mon Nov 29, 2010 2:14 am Post subject: MP3 PLaylist |
|
|
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 |
|
 |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Wed Dec 01, 2010 12:36 pm Post subject: |
|
|
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 |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Dec 02, 2010 9:25 am Post subject: |
|
|
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 |
|
 |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Thu Dec 02, 2010 4:33 pm Post subject: |
|
|
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 |
|
 |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Thu Dec 02, 2010 4:40 pm Post subject: |
|
|
Sorry, i already have it.
I'll take a look to it...
Thanks a lot! |
|
| Back to top |
|
 |
|