
-----------------------------------
adhanjal
Mon Jan 16, 2012 7:26 pm

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

-----------------------------------
Raknarg
Mon Jan 16, 2012 7:28 pm

RE:Music.PlayFileLoop not working
-----------------------------------
how long are each of the songs?

-----------------------------------
adhanjal
Mon Jan 16, 2012 7:42 pm

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.
http://i.imgur.com/TY4dR.png

-----------------------------------
Raknarg
Mon Jan 16, 2012 7:52 pm

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
Mon Jan 16, 2012 8:13 pm

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
Mon Jan 16, 2012 9:32 pm

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
Mon Jan 16, 2012 9:35 pm

RE:Music.PlayFileLoop not working
-----------------------------------
Tried wav files also, still nothing.

-----------------------------------
Dreadnought
Mon Jan 16, 2012 10:38 pm

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.[/code]

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?)

-----------------------------------
mirhagk
Mon Jan 16, 2012 10:55 pm

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
Tue Jan 17, 2012 7:48 am

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.

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
Tue Jan 17, 2012 9:49 am

Re: Music.PlayFileLoop not working
-----------------------------------
here it's attached.

-----------------------------------
adhanjal
Tue Jan 17, 2012 9:54 am

RE:Music.PlayFileLoop not working
-----------------------------------
You attached the MP3

-----------------------------------
mirhagk
Tue Jan 17, 2012 10:27 am

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
Tue Jan 17, 2012 4:55 pm

RE:Music.PlayFileLoop not working
-----------------------------------
Oh yay, it works! Out of curiosity, how did you do it?

-----------------------------------
mirhagk
Tue Jan 17, 2012 6:44 pm

RE:Music.PlayFileLoop not working
-----------------------------------
I just used real player to convert it to a wav.
