Author |
Message |
petree08
|
Posted: Thu May 01, 2008 9:58 am Post subject: Music player v2 |
|
|
read the readme file
. Anyway .. media player
wrote it cuz windows media player at home is broken
Description: |
|
Download |
Filename: |
Final Music Player.zip |
Filesize: |
10.16 MB |
Downloaded: |
273 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Clayton
|
Posted: Thu May 01, 2008 4:43 pm Post subject: RE:Music player v2 |
|
|
VLC
|
|
|
|
|
|
petree08
|
Posted: Fri May 02, 2008 8:02 am Post subject: RE:Music player v2 |
|
|
may be a noob question...
what does VLC mean?
|
|
|
|
|
|
petree08
|
Posted: Fri May 02, 2008 8:10 am Post subject: RE:Music player v2 |
|
|
oh... i googled VLC , thanks man
|
|
|
|
|
|
Clayton
|
Posted: Fri May 02, 2008 9:01 am Post subject: RE:Music player v2 |
|
|
I linked it in my post. That's what that nice light blue means generally on the internet.
|
|
|
|
|
|
petree08
|
Posted: Fri May 02, 2008 10:58 am Post subject: RE:Music player v2 |
|
|
lol, my computer was set to black and white at the time.. some moron set it up that way
|
|
|
|
|
|
ums
|
Posted: Thu May 08, 2008 9:06 pm Post subject: Re: Music player v2 |
|
|
hey i had one question for my grade 10 final i was making a media player aswell..i had one question how did u get the user to locate the music folder and how can u get the music to play
all i have so far is music.playfile and then the title of the song in brackets it plays that song but i want more songs to play ..and i also wanted to get to locate it so they could listen a bunch of songs at once, not one at a time..i need help my teacher is being a douche and not helping he says to ask some ppl in class but no one knows so the help will be greatly appreciated
|
|
|
|
|
|
petree08
|
Posted: Fri May 09, 2008 8:19 am Post subject: RE:Music player v2 |
|
|
okay so the first thing you need to do is open the folder the music is in.
I had the user specify the name of the folder .
open folder using the Dir.Open command
to use the Dir.Open Commad you neeed a DirID var and a Folder name var
DirID needs to be an int
UserInput needs to be a string
DirID := Dir.Open (UserInput)
I then used the File.Get command to search for every file with the extensions
- .mp3
-.wav
-.mid
(turings supportable audio files)
i saved every filename into an array of strings
- The GUI and play interface is a little harder to explain, but if you understand the above then you should at least have a list of songs going
- good luck
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
ums
|
Posted: Sat May 10, 2008 1:07 pm Post subject: Re: Music player v2 |
|
|
yah i tired what u said to do but the program asks u to enter the folder and once u've entered the file it won't play the songs...here is what i have so far
var DirID : int
var foldername : string
setscreen("text")
put "Enter a file where your music is locate"
get foldername
DirID := Dir.Open (foldername)
process music
Music.PlayFile (foldername)
end music
fork music
Dir.Close(DirID)
if possible could u help me with my problem...i have the music files in a folder that is called music and is in the same folder as the program above but it still doesn't work
|
|
|
|
|
|
darkangel
|
Posted: Sat May 10, 2008 5:44 pm Post subject: Re: Music player v2 |
|
|
ums @ Sat May 10, 2008 1:07 pm wrote:
process music
Music.PlayFile (foldername)
end music
you can't play a folder so what you have to do is...
code: |
var streamNumber : int
var fileName : string
streamNumber := Dir.Open ("Enter_foldername_here")
assert streamNumber > 0
loop
fileName := Dir.Get (streamNumber)
exit when fileName = ""
put fileName
end loop
Dir.Close (streamNumber)
|
use that bit of code to find all the files that CAN be played, then use the Music.PlayFile on the files that you FIND IN IT.
|
|
|
|
|
|
ums
|
Posted: Sat May 10, 2008 8:57 pm Post subject: Re: Music player v2 |
|
|
thanx for the help in opening the folder...the program now outputs the songs that are located in that folder but i still don't understand how i can make the Music.PlayFile to play the files that are in the folder where do i put this in the programe
code:
process music
Music.PlayFile ("")
end music
fork music
and one last thing what do i put in the brackets for the Music.PlayFile ...and thanx for the help guys
|
|
|
|
|
|
gitoxa
|
Posted: Sat May 10, 2008 9:07 pm Post subject: RE:Music player v2 |
|
|
Music.PlayFile("SongName.mp3")
or
Music.PlayFile(String_Variable_Holding_Song_Name)
|
|
|
|
|
|
petree08
|
Posted: Sun May 11, 2008 12:59 pm Post subject: RE:Music player v2 |
|
|
i saved the song names into an array of strings
that way i could scroll through them and use gui
|
|
|
|
|
|
ums
|
Posted: Tue May 13, 2008 5:55 pm Post subject: Re: Music player v2 |
|
|
one last question i hope, how do u get the songs in to an array
|
|
|
|
|
|
petree08
|
Posted: Tue May 13, 2008 8:49 pm Post subject: RE:Music player v2 |
|
|
using the file.get command, get individual file names and place it into an array.
|
|
|
|
|
|
|