Author |
Message |
dc14
|
Posted: Thu May 13, 2010 5:17 pm Post subject: Can't Play Music... |
|
|
When I try to run this program Turing just crashes saying that it's encountered an internal error.
I've used the exact same code on the school computers and it's worked fine.
I'm using Turing 4.1.1 and the school has the same one.
Anybody know what's wrong??
Turing: |
import GUI
process biotp
loop
Music.PlayFile ("MP3:biotp")
end loop
end biotp
procedure newpage
fork biotp
cls
end newpage
View.Set ("graphics:300;200,nobuttonbar ")
var playmusic: int := GUI.CreateButtonFull(50, 10, 0, "Blame it on the Pop - by DJ Earworm",
newpage, 0, 'u', false)
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Thu May 13, 2010 5:43 pm Post subject: RE:Can\'t Play Music... |
|
|
What line does it crash on? Have you tried this with a different file? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
dc14
|
Posted: Thu May 13, 2010 5:46 pm Post subject: Re: Can't Play Music... |
|
|
It doesn't show where it crashed, a window just pops up informing me about the fatal internal error...
I've tried a bunch of other music files but they all just crash... |
|
|
|
|
|
Tony
|
Posted: Thu May 13, 2010 6:35 pm Post subject: RE:Can\'t Play Music... |
|
|
start taking pieces of code out, until the program does not crash. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
dc14
|
Posted: Thu May 13, 2010 6:37 pm Post subject: Re: Can't Play Music... |
|
|
alright I'll try that. Thanks. |
|
|
|
|
|
dc14
|
Posted: Thu May 13, 2010 6:41 pm Post subject: Re: Can't Play Music... |
|
|
ok so i tried took everything out except for the "Music.PlayFile ("MP3:biotp")" and it still crashes.
I guess that's the problem
i also tried changing it to "Music.PlayFile ("biotp.mp3")"
maybe this version just can't handle music files?
I also tried using a wav file... |
|
|
|
|
|
Tony
|
Posted: Thu May 13, 2010 6:49 pm Post subject: RE:Can\'t Play Music... |
|
|
code: |
Music.PlayFile("name.mp3")
|
is the typical usage; and I haven't heard of the problems before, but you could try Turing 4.1 or 4.0.5 from http://compsci.ca/holtsoft/ (although you want your code to work at school as well...)
Test it out with another mp3 file from a different source. Encoding/DRM could be causing unexpected issues. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
dc14
|
Posted: Thu May 13, 2010 7:04 pm Post subject: Re: Can't Play Music... |
|
|
I downloaded 4.0.5 and it still doesn't work
I used one of my older song files that I downloaded differently and it still doesn't work...
Do you think it may have something to do with my Windows 7? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TheGuardian001
|
Posted: Thu May 13, 2010 7:07 pm Post subject: Re: Can't Play Music... |
|
|
If it's actually crashing Turing, and not just the program, I'd guess that a reinstall would probably fix the problem.
Edit:As to the Windows 7 thing, I doubt it, but try running in XP compatibility mode to be sure. |
|
|
|
|
|
Tony
|
Posted: Thu May 13, 2010 8:05 pm Post subject: Re: Can't Play Music... |
|
|
dc14 @ Thu May 13, 2010 7:04 pm wrote: Do you think it may have something to do with my Windows 7?
There have been some people who had trouble getting Turing to run on Win7. If the same code+music_file runs on 2000/XP then it would be a stronger case against OS compatibilities. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|