What I need is a dll created as a .net assembly. Will need the following methods:
1. OpenFile(Path)
this will open the file for playing
2. GetPlayPos
this will show the play position measured in seconds
3. SetPlayPos
this will set the play position so when playing, it will start on the spot (to be measured in seconds)
4. GetSongLength
this will return how long the song is in seconds
5. Play
this will play the song starting at the position specified with the SetPlayPos
if SetPlayPos is not set, then will start playing from beginning
6. Pause
this will pause the song
7 StopPlay
this will stop the song from playing
8. CloseFile
this will close out of the file
9. SetSoundVolume (Value)
this will set the value. 0 is the lowest and 100 is the highest
10. GetSoundValue
this will show what the sound level is set at.
Also, will have 2 events
One would be progress (which would be raised every second as long as the song is playing)
the parameters that would be sent to it would be TimeElapsedSeconds, TimeElapsedLabel
the TimeElapsedSeconds will show in seconds how much time into the song it is
the TimeElapsedLabel will show in the format of 3:40 (assuming 220 seconds) which is 3 minutes 40 seconds
The other event is finished
Once the song is finished, then it will raise this event so the program will know the song is over
This needs to be a .net assembly with no references to COM at all. If there is a COM object that all computers has (like the Windows Media Player), that would be fine though. Also, the dll needs to work on a computer that has the .net framework installed but not Visual Studio. Needs to be in either VB.net or C#.net but callable from VB.net 2005
Let me know if you have any questions.
## Deliverables
The compiled dll and the source code for the dll for playing MP3s. The only format this dll needs to play is MP3s.
## Platform
Windows XP Home Edition