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

Username:   Password: 
 RegisterRegister   
 Music.PlayFileLoop not working
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
adhanjal




PostPosted: Mon Jan 16, 2012 7:26 pm   Post subject: Music.PlayFileLoop not working

What is it you are trying to achieve?
Play an MP3 file through use of Music.PlayFileLoop

What is the problem you are having?
Program will compile however music will not play.

Describe what you have tried to solve this problem
Tried different MP3s. None of the Music. module functions work.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

see attached zip file.

Please specify what version of Turing you are using
4.1.1



ICS3U-final.zip
 Description:

Download
 Filename:  ICS3U-final.zip
 Filesize:  19.78 MB
 Downloaded:  89 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Mon Jan 16, 2012 7:28 pm   Post subject: RE:Music.PlayFileLoop not working

how long are each of the songs?
adhanjal




PostPosted: Mon Jan 16, 2012 7:42 pm   Post subject: RE:Music.PlayFileLoop not working

4:01 and 3:52, but I'll only ever play one of them.

EDIT: Also, now I'm getting a Segmentation Violation error when I try to run the program, but I haven't made any changes to the code since originally posting it.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Raknarg




PostPosted: Mon Jan 16, 2012 7:52 pm   Post subject: RE:Music.PlayFileLoop not working

Well one problem that happened with me was that after a certain length, songs dont seem to work on turing.
adhanjal




PostPosted: Mon Jan 16, 2012 8:13 pm   Post subject: RE:Music.PlayFileLoop not working

Even with an MP3 that's less than a minute it doesn't work, though now the environment is crashing altogether.
mirhagk




PostPosted: Mon Jan 16, 2012 9:32 pm   Post subject: RE:Music.PlayFileLoop not working

Convert your mp3's to wav's. mp3's are really iffy with turing. (real player has a converter if you need one)
adhanjal




PostPosted: Mon Jan 16, 2012 9:35 pm   Post subject: RE:Music.PlayFileLoop not working

Tried wav files also, still nothing.
Dreadnought




PostPosted: Mon Jan 16, 2012 10:38 pm   Post subject: Re: Music.PlayFileLoop not working

Well, it seems to be something with that particular file. Perhaps some wort of security thing, maybe encoding.
I was able to play other files of comparable size and bitrate with no problem. (same directory, Turing file, etc)

I was, however, able to get Turing to spit out a few error messages.

code:
Error Number: 1510
Error Constant: eMusicWAVEOpenError
A problem occurred in initializing MCI.


I'm afraid these may not help much. MCI is Media Control Interface, and from what I gather, its a windows API that programs can access to control media peripherals like cd-rom drives and play media files.

Out of curiosity what program did you use to create the files? Have you tried other programs? (If others are available?)
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Mon Jan 16, 2012 10:55 pm   Post subject: RE:Music.PlayFileLoop not working

Your number 2 file doesn't work (realplayer refuses to convert it, suggests to me an error in the file). The number one song file (then one you aren't using) converts fine and works. I am playing it on my machine right now. If you can't get that one to work as a wav, I can send you my copy of the wav that does work.
adhanjal




PostPosted: Tue Jan 17, 2012 7:48 am   Post subject: RE:Music.PlayFileLoop not working

Oh, that could be an error caused by DRM. I'll try the number 1 file and see if it works.

Dreadnought @ Mon Jan 16, 2012 10:38 pm wrote:
Out of curiosity what program did you use to create the files? Have you tried other programs? (If others are available?)

I converted the files to WAV using Adobe Audition 4.0

EDIT: Still doesn't work even after converting bgm.mp3 to a WAV file. Would you be able to send it?
mirhagk




PostPosted: Tue Jan 17, 2012 9:49 am   Post subject: Re: Music.PlayFileLoop not working

here it's attached.


bgm.zip
 Description:
you need to unzip it.

Download
 Filename:  bgm.zip
 Filesize:  5.39 MB
 Downloaded:  562 Time(s)

adhanjal




PostPosted: Tue Jan 17, 2012 9:54 am   Post subject: RE:Music.PlayFileLoop not working

You attached the MP3
mirhagk




PostPosted: Tue Jan 17, 2012 10:27 am   Post subject: RE:Music.PlayFileLoop not working

My bad, and I see to have trouble uploading the 2nd version, so here's a link to it http://dl.dropbox.com/u/6539207/bgmwav.zip
adhanjal




PostPosted: Tue Jan 17, 2012 4:55 pm   Post subject: RE:Music.PlayFileLoop not working

Oh yay, it works! Out of curiosity, how did you do it?
mirhagk




PostPosted: Tue Jan 17, 2012 6:44 pm   Post subject: RE:Music.PlayFileLoop not working

I just used real player to convert it to a wav.
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  [ 15 Posts ]
Jump to:   


Style:  
Search: