GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2012-Feb-20

Title: Tune wont play
Post by: MrTAToad on 2012-Feb-20
For some reason, the included tune (out of my 5) wont play on Windows...

Could someone  try it to see if it works for them.

Its 8.02Mb and can be found here : http://www.un-map.com/Glee Club Polka.mp3 (http://www.un-map.com/Glee%20Club%20Polka.mp3) in GLBasic
Title: Re: Tune wont play
Post by: Minion on 2012-Feb-20
Can`t get it to play in GLB on my machine (using either PLAYMUSIC or LOADSOUND/PLAYSOUND ) but it does play thru all my usual players. Glad to see someone else using Kevins work too :)
Title: Re: Tune wont play
Post by: MrTAToad on 2012-Feb-20
Yes, he does good stuff!
Title: Re: Tune wont play
Post by: MrTAToad on 2012-Feb-20
I have found that using Audiocity to export it in the same format that it was imported in saves a lot of disk space and lets GLBasic play the tune - so it could possibly be some sort of size limit.
Title: Re: Tune wont play
Post by: spacefractal on 2012-Feb-20
the tune works fine on my Windows 7 machine. Howover due that way I load the music in my game, I was needed to rename it to gleeclubpolka.mp3

so mightbeen you should not using spaces in your filenames which sometimes can fails on some systems?
Title: Re: Tune wont play
Post by: MrTAToad on 2012-Feb-20
Its possible although two other tunes have spaces in them...
Title: Re: Tune wont play
Post by: Ruidesco on 2012-Feb-20
That MP3 file has a frequency of 48Khz, it's possible that the codec in GLBasic only accepts the more usual 44.1Khz.
Title: Re: Tune wont play
Post by: spacefractal on 2012-Feb-20
strange, since the tune did works nicely here and played correctly, dispite I was need to rename the file (which is more the style I load them from a level). Its can only been some codec problem you and/or glbasic using?
Title: Re: Tune wont play
Post by: okee on 2012-Feb-20
Works ok here in GLB. Replaced the music in my game with it (a piece by Kevin McLeod as well)
Title: Re: Tune wont play
Post by: Crivens on 2012-Feb-20
QuoteThat MP3 file has a frequency of 48Khz, it's possible that the codec in GLBasic only accepts the more usual 44.1Khzp
I find it depends on the device and the frequency. I use Audacity to make the music and effects smaller (lower frequency and mono mainly), but you can't go nuts. Everything worked for me at something like 8khz for example with lovely small samples but then one of my devices didn't (may have been iOS can't remember now). For ease of use I just use the same frequency for the lot rather than mucking around with different ones for each device. Could save space on some devices but it is only a few K and is easier than me remembering to change things each time.

Cheers
Title: Re: Tune wont play
Post by: spicypixel on 2012-Feb-20
Might be due to VBR compared to CBR, worth a try sure I had a VBR MP3 before so I used CBR and it was fine. Might be wrong mind
Title: Re: Tune wont play
Post by: MrTAToad on 2012-Feb-20
Yes, I was wondering about that too...
Title: Re: Tune wont play
Post by: spicypixel on 2012-Feb-21
The problem I had was this http://www.glbasic.com/forum/index.php?topic=6635.0 (http://www.glbasic.com/forum/index.php?topic=6635.0) however this may be a similar thing especially as VBR compared to CBR does cause issues. I can understand my original post because of timings but there may be other issues regarding VBR MP3's which render playback problematic.