Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Can't Play Music...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dc14




PostPosted: 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
Sponsor
sponsor
Tony




PostPosted: 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?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
dc14




PostPosted: 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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
dc14




PostPosted: Thu May 13, 2010 6:37 pm   Post subject: Re: Can't Play Music...

alright I'll try that. Thanks.
dc14




PostPosted: 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 Sad
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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
dc14




PostPosted: 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
Sponsor
sponsor
TheGuardian001




PostPosted: 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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: