GLBasic forum

Main forum => GLBasic - en => Topic started by: PeeJay on 2008-Jan-31

Title: Suggestion - MP3 support for PLAYSOUND
Post by: PeeJay on 2008-Jan-31
I know the sound / music side is giving you nightmares at the moment, Gernot, but is there any chance of adding this?
Title: Suggestion - MP3 support for PLAYSOUND
Post by: Kitty Hello on 2008-Jan-31
No chance. I want to have all platforms compatible, thus I must play mp3 on PocketPC/GP2X and stuff, too. It's almost impossible to get it working on all platforms.
Maybe you can find some command line tool to convert mp3 to wav, then load the temp-wav, and delete it afterwards?
(shiver, shiver)
Title: Suggestion - MP3 support for PLAYSOUND
Post by: PeeJay on 2008-Jan-31
okay, does that mean that PLAYMUSIC as an mp3 is going to cause problems? This is where I'm getting confused ....
Title: Suggestion - MP3 support for PLAYSOUND
Post by: Kitty Hello on 2008-Jan-31
playmusic and playsound is seperated on SDL. For Windows I use MCI for music, thus you can't "blend" 2 mp3 files. It's also not HW accellerated.
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
I'm trying to play mp3 files. They work well on the handheld but the PC version either crashes or remains silent. The SDK sample crashes as well. Anybody has an idea how could I go further? All help would be greatly appreciated"
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: Kitty Hello on 2010-Jan-18
the mp3 seems strange then. Try re-encoding it with a fixed bit rate (not too high, too).
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
My mp3 file is a fixed bit rated one with 128 kbps. I can't imagine any simpler than that. And by the way, I wasn't able to find *any* mp3 file which works on PC.
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
converted:AUDACITY 1.2.6 / Lame_v3.98.2_for_Audacity_on_Windows
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-18
QuoteAnd by the way, I wasn't able to find *any* mp3 file which works on PC.
Thats odd, because the Playmusic sample works fine here.  I presume you do have your volume turned up ?
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
Do you think if I turn up the volume it won't CRASH? :)
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-18
You never know!

Does standard Window sounds play (from Control Panel) ?
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
windows sounds also work fine
The problem is limited to mp3 files. It works well with wavs
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-18
Can you make a MP3 available ?
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
mp3 is avaible
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-18
Whereabouts ?  I cant see any post with the file in it. :)

What version of Windows are you using ?
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-18
XP prof servicepack 3
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-20
sorry :)
http://www.szantaiistvan.hu/gamemusic.mp3
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-20
The .ogg doesn't work on the PC, but it works on WIZZ. 'MUSICVOLUME' is the same.
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-20
Do you nedd DxDiag file?
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: Ian Price on 2010-Jan-20
I can't get .ogg files to play (via GLBasic) on my laptop pc either, but they play fine on my Wiz and GP2X. I've found Wiz volume is different to pc for music playback (IIRC Wiz was lower in volume).
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-20
OGG should be okay if you install the correct codecs...
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-20
all codecs is good
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: Ian Price on 2010-Jan-20
I've installed numerous codecs for .ogg - none work for GLB. ALL work for other programs that use .ogg.
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: MrTAToad on 2010-Jan-20
Its possible MCI cant handle OGG files...  Really must experiment at some time in the future...
Title: Re: Suggestion - MP3 support for PLAYSOUND
Post by: LQ75 on 2010-Jan-21
GLBasic Is COOL :)
My windows is old and bad.