Tune wont play

Previous topic - Next topic

MrTAToad

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 in GLBasic

Minion

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

MrTAToad

Yes, he does good stuff!

MrTAToad

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.

spacefractal

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?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

Its possible although two other tunes have spaces in them...

Ruidesco

That MP3 file has a frequency of 48Khz, it's possible that the codec in GLBasic only accepts the more usual 44.1Khz.

spacefractal

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?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

okee

Works ok here in GLB. Replaced the music in my game with it (a piece by Kevin McLeod as well)
Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)

Crivens

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
Current fave quote: Cause you like musicians and I like people with boobs.

spicypixel

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
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

MrTAToad

Yes, I was wondering about that too...

spicypixel

The problem I had was this 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.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.