I know the sound / music side is giving you nightmares at the moment, Gernot, but is there any chance of adding this?
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)
okay, does that mean that PLAYMUSIC as an mp3 is going to cause problems? This is where I'm getting confused ....
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.
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"
the mp3 seems strange then. Try re-encoding it with a fixed bit rate (not too high, too).
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.
converted:AUDACITY 1.2.6 / Lame_v3.98.2_for_Audacity_on_Windows
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 ?
Do you think if I turn up the volume it won't CRASH? :)
You never know!
Does standard Window sounds play (from Control Panel) ?
windows sounds also work fine
The problem is limited to mp3 files. It works well with wavs
Can you make a MP3 available ?
mp3 is avaible
Whereabouts ? I cant see any post with the file in it. :)
What version of Windows are you using ?
XP prof servicepack 3
sorry :)
http://www.szantaiistvan.hu/gamemusic.mp3
The .ogg doesn't work on the PC, but it works on WIZZ. 'MUSICVOLUME' is the same.
Do you nedd DxDiag file?
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).
OGG should be okay if you install the correct codecs...
all codecs is good
I've installed numerous codecs for .ogg - none work for GLB. ALL work for other programs that use .ogg.
Its possible MCI cant handle OGG files... Really must experiment at some time in the future...
GLBasic Is COOL :)
My windows is old and bad.