Author |
Message |
adhanjal
|
Posted: 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
Description: |
|
Download |
Filename: |
ICS3U-final.zip |
Filesize: |
19.78 MB |
Downloaded: |
89 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Raknarg
|
Posted: Mon Jan 16, 2012 7:28 pm Post subject: RE:Music.PlayFileLoop not working |
|
|
how long are each of the songs?
|
|
|
|
|
|
adhanjal
|
Posted: 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.
|
|
|
|
|
|
Raknarg
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: Mon Jan 16, 2012 9:35 pm Post subject: RE:Music.PlayFileLoop not working |
|
|
Tried wav files also, still nothing.
|
|
|
|
|
|
Dreadnought
|
Posted: 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
|
|
|
mirhagk
|
Posted: 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
|
Posted: 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
|
Posted: Tue Jan 17, 2012 9:49 am Post subject: Re: Music.PlayFileLoop not working |
|
|
here it's attached.
Description: |
|
Download |
Filename: |
bgm.zip |
Filesize: |
5.39 MB |
Downloaded: |
562 Time(s) |
|
|
|
|
|
|
adhanjal
|
Posted: Tue Jan 17, 2012 9:54 am Post subject: RE:Music.PlayFileLoop not working |
|
|
You attached the MP3
|
|
|
|
|
|
mirhagk
|
|
|
|
|
adhanjal
|
Posted: 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
|
Posted: 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.
|
|
|
|
|
|
|