Wants sounds to be .ogg instead of .mp3?

Description: It's archive, posting new is here http://wohlsoft.ru/forum/viewforum.php?f=11

romajiQuadhash
Topic author, Passerby
Passerby
romajiQuadhash
Topic author, Passerby
Passerby
Reputation: 0
Posts: 3
Joined: 25 Feb 2015

Post #1by romajiQuadhash » 27 Feb 2015, 23:39

So, I opened a level I made in A2XT with PGE, didn't save any changes in the editor, and then something really weird happened when I tried to load the level in SMBX.
It raised an error for every single sound effect in the game, saying that the file returned a null soundstream, and every file name there ended in .ogg.
I looked in the sound folder, and every sound was there, but they were all .mp3 files.
I looked at my non dev copy of A2XT, and there too, all the files were .mp3.
I tried to launch my dev copy of A2XT, but it rased all the same errors.

How the hell did I screw this up, and how do I fix it?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #2by Wohlstand » 27 Feb 2015, 23:55

Check SMBX's and level's full paths: there are should with ASCII only:
Move your SMBX into folder with ASCII only path: (C:\My games\SMBX, D:\Dev\SMBX\A2XT. etc...).
(this is internal LunaDLL's "Unicode vs ANSI" long war which should be fixed in next time :wacko: )
PGE have no troubles with paths because it fully supports unicode and see everything correctly.

romajiQuadhash
Topic author, Passerby
Passerby
romajiQuadhash
Topic author, Passerby
Passerby
Reputation: 0
Posts: 3
Joined: 25 Feb 2015

Post #3by romajiQuadhash » 28 Feb 2015, 0:11

They are ASCII only path names.
The problem is that the game is looking for 1up.ogg when only 1up.mp3 exists. For every single sound effect in the whole game

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 28 Feb 2015, 0:18

romajiQuadhash wrote:The problem is that the game is looking for 1up.ogg when only 1up.mp3 exists. For every single sound effect in the whole game
You need the OGG sound pack or convert all your sounds into OGG yourself
You can take them here: /viewtopic.php?f=26&t=329 or here: http://www.supermariobrosx.org/forums/viewtopic.php?f=69&t=6973
You will have two links: "SDL Dlls & A2XT Audio Files" and "SMBX Audio Files". First contains dependent SDL libraries with included A2MBXT OGG sounds which will work with LunaLUA+SDL (all sounds must be converted into OGG), and second archive contains the SMBX OGG Audio files if you plan use LunaLUA with regular SMBX stuff

Also here I wrote about SFX: SDL can't play MP3 sfx, therefore thwn I hooked "Open" MCI call, I replaced default filepaths with OGG extensions:
http://www.supermariobrosx.org/forums/viewtopic.php?p=109859#p109859

romajiQuadhash
Topic author, Passerby
Passerby
romajiQuadhash
Topic author, Passerby
Passerby
Reputation: 0
Posts: 3
Joined: 25 Feb 2015

Post #5by romajiQuadhash » 28 Feb 2015, 0:22

Wohlstand wrote:
romajiQuadhash wrote:The problem is that the game is looking for 1up.ogg when only 1up.mp3 exists. For every single sound effect in the whole game
You need the OGG sound pack or convert all your sounds into OGG yourself
You can take them here:
/viewtopic.php?f=26&t=329
You will have two links: "SDL Dlls & A2XT Audio Files" and "SMBX Audio Files". First contains dependent SDL libraries with included A2MBXT OGG sounds which will work with LunaLUA+SDL (all sounds must be converted into OGG), and second archive contains the SMBX OGG Audio files if you plan use LunaLUA with regular SMBX stuff
Oh, so it's lualuna making it use the other format?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #6by Wohlstand » 28 Feb 2015, 0:25

romajiQuadhash wrote:Oh, so it's lualuna making it use the other format?
Yes, LunaLUA now including the SDL Mixer Library which adding ability to use in custom music files more music formats (like OGG, FLAC, MOD, XM, IT, S3M, etc.), MP3 musics will works with SDL mixer, but SFX-es (I.e. "chunks") can't be played by SDL2_mixer, BUT, developers of library implementing ability to use MP3's as "chunks".
Also, with adding of SDL Mixer API we have able to use LunaLUA to play multiple custom musics and sounds in one section (example are presented on SDL page)

I will repeat:
Also here I wrote about SFX: SDL can't play MP3 sfx, therefore I hooked "Open" MCI call where I replaced default filepaths with OGG extensions instead of default.
http://www.supermariobrosx.org/forums/viewtopic.php?p=109859#p109859
Also this thing giving ability to CUSTOMIZE by each episode default sounds and musics (each episode can have own bunch of default musics and own buch of sounds with no replacement of system SMBX's content)


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest