Author |
Message |
whatwhat
|
Posted: Fri Jun 15, 2012 2:45 pm Post subject: Help With Music In Turing Please? |
|
|
What is it you are trying to achieve?
<Replace all the <> with your answers/code and remove the <>>
What is the problem you are having?
I can't play an mp3 file in turing. I want the music to play once a person pushes a button.
Describe what you have tried to solve this problem
I read the guide on this but I still couldn't figure it out.
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Fri Jun 15, 2012 3:04 pm Post subject: RE:Help With Music In Turing Please? |
|
|
Read the guide again. Ask specific questions. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
whatwhat
|
Posted: Fri Jun 15, 2012 4:55 pm Post subject: Re: RE:Help With Music In Turing Please? |
|
|
Tony @ Fri Jun 15, 2012 3:04 pm wrote: Read the guide again. Ask specific questions.
In the guide it said that the file must be in the same directory as the program. I am new to this so I'm not sure where to put the file. I tried to put the file in the turing folder and then tried to run it with this program just to see if the music would work
process DoMusic
loop
Music.PlayFile ("branden3.wav")
end loop
end DoMusic
fork DoMusic
var x, y, clr : int
loop
x := Rand.Int (0, maxx)
y := Rand.Int (0, maxy)
clr := Rand.Int (0, maxcolor)
Draw.FillOval (x, y, 30, 30, clr)
end loop
I changed the branden3.wav with the name of my mp3 file and nothing happened.
 |
|
|
|
|
 |
Amarylis
|
Posted: Fri Jun 15, 2012 4:58 pm Post subject: RE:Help With Music In Turing Please? |
|
|
Turing has, historically, not been the best for MP3 files. Also, the same directory just means that the music file needs to be in the same folder as your code file |
|
|
|
|
 |
poll262
|
Posted: Fri Jun 15, 2012 6:01 pm Post subject: RE:Help With Music In Turing Please? |
|
|
Also instead of putting the Music.PlayFile in a loop you could us Music.PlayFileLoop instead |
|
|
|
|
 |
Tony

|
Posted: Fri Jun 15, 2012 7:04 pm Post subject: RE:Help With Music In Turing Please? |
|
|
I recall there being problems if the music file is too large and/or comes with DRM. Try a variety of different music files. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
copthesaint

|
Posted: Sun Jun 17, 2012 9:02 am Post subject: Re: Help With Music In Turing Please? |
|
|
Copthesaints Lan music server: Download
It helps a bit to improve your programs speed, however this music player can only be opened in another window and it still takes up alot of the cpu |
|
|
|
|
 |
whatwhat
|
Posted: Sun Jun 17, 2012 11:48 am Post subject: RE:Help With Music In Turing Please? |
|
|
I changed it to WAV and it worked so thank you guys
I was also wondering if you could post a video in turing? Like a short clip, in turing or in an external movie player like VLC?
I just tried putting a picture in it and I tried a lot of the ways on here, I tried using a gif and jpg but it keeps saying picture could not be created. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|