..::How To Open::..
To use it type /player or right click anywhere and click on "Freeze mp3".
..::How To Use::..
Freeze mp3 is pretty simple to use. First open Freeze mp3 (See How To Open) and then a small dialog box should appear. Click "Browse" and browse through your files until you find the song you want to play. When you've found it, double click on it and you should return to the first dialog box. Hit "Play" and the song you want will play. To pause it hit "Pause" and to stop it hit "Stop".
Please comment if you have any problems or have a suggestion.
menu * {
.Freeze mp3 { mp3 }
}
alias mp3 {
/dialog -m player player
}
dialog Player {
title "Freeze mp3!"
size -1 -1 160 63
option dbu
button "Stop", 2, 89 9 47 20, flat multi
box "Song", 3, 3 4 152 47
text "By Freeze", 4, 50 50 38 8, nowrap
button "Browse", 5, 8 30 37 12, flat multi
edit "", 6, 9 11 74 15
button "Play", 7, 66 31 32 11, flat multi
button "Pause/Resume", 8, 105 31 40 11, flat multi
}
on *:DIALOG:player:sclick:5: {
//set %file $sfile(%musicdir $+ *.mp3;*.wma*.wav,Select music file)
did -r $dname 6
did -a $dname 6 $regsubex($nopath(%file),/\.[^.]+$/,)
}
on *:DIALOG:player:sclick:7: {
splay %file
amsg (Freeze mp3) I am currently listening to: $regsubex($nopath(%file),/\.[^.]+$/,) (Freeze mp3)
}
on *:DIALOG:player:sclick:2: {
splay stop
}
on *:DIALOG:player:sclick:8: {
if (%pause == $null) {
splay pause
set %pause f
halt
}
elseif (%pause == f) {
splay resume
unset %pause
}
}
Eh, it\'s okay. You could add so many more options to this. I would add some more options to the spammsg, and include some method of configuration. One thing that is a bit of a hassle is the use of $sfile and searching for a directory. Why not make a list in the dialog so that you only have to configure everything at one time?
It would be even better if you could add end options such as repeat, shuffle, or even something that goes down the list of songs. A lot of people like to have the ability to be able to not have to constantly click play and select a song. I know this probably takes the originality from the snippet but it would be a lot easier to use .