Page 1 of 2

Sound Bug

Posted: 20 Jan 2008, 19:00
by strikerbcb
I´m compiling the latest SVN, but i have no sound or music, this is an error i give :

[18:46:46.89] Loaded data/sfx/maggot-dying1.ogg
[18:46:46.89] Error, failed to load sound effect: Unrecognized sound file type
[18:47:08.93] Sound::startMusic() Playing "data/music/vilarejo.ogg" -1 times
[18:47:08.93] Sound::startMusic() Warning: error loading file.

The sounds and musics are in data directory of tmw :

music
/data/music

sfx
/data/sfw

It´s some problem of the codec or with the dlls ?

EDIT : When i update tmw svn, i give now one compiler error :

E:\MDD 2D\src\sound.cpp: In member function `void Sound::playMusic(const std::string&, int)':
E:\MDD 2D\src\sound.cpp:138: error: 'class ResourceManager' has no member named 'getPath'

Thanks

Posted: 21 Jan 2008, 14:49
by strikerbcb
Any ideas on how i fix this problem ?, if i revert the file sound.cpp in the svn the tmw compile fine, but without any sound or music. And if i use the latest sound.cpp of svn i can't compile anymore, give a getPath indefined.

Thanks for the attention.

Re: Sound Bug

Posted: 22 Jan 2008, 09:39
by ElvenProgrammer
strikerbcb wrote: [18:46:46.89] Loaded data/sfx/maggot-dying1.ogg
[18:46:46.89] Error, failed to load sound effect: Unrecognized sound file type
Weird, did you compile libogg, libvorbis and SDL-mixer yourself or did you use the one shipped in the DevPak.
strikerbcb wrote: [18:47:08.93] Sound::startMusic() Playing "data/music/vilarejo.ogg" -1 times
[18:47:08.93] Sound::startMusic() Warning: error loading file.
I've never seen this file, is it an official TMW music file?
strikerbcb wrote:When i update tmw svn, i give now one compiler error :

E:\MDD 2D\src\sound.cpp: In member function `void Sound::playMusic(const std::string&, int)':
E:\MDD 2D\src\sound.cpp:138: error: 'class ResourceManager' has no member named 'getPath'

Thanks
Latest SVN compiles just fine here, I think Crush committed a fix about this some time ago, did you update lately?

Posted: 22 Jan 2008, 14:40
by strikerbcb
Weird, did you compile libogg, libvorbis and SDL-mixer yourself or did you use the one shipped in the DevPak
No, i'm not compile, i use the devpack in codeblocks.
I've never seen this file, is it an official TMW music file?
No, it's a music i have here. But its works fine in players, and the oficial musics ( and all sounds like SFX ) don't work too.
Latest SVN compiles just fine here, I think Crush committed a fix about this some time ago, did you update lately?
Yes, it's the latest SVN and with the Crush alteration ...

obs. : With the previous version of SVN, it's compiles, but without any kind of sound. With the Latest version, it's not compiles and i give the error with getPath.


Please help me ...

I'm using Windows XP SP2, latest Codeblocks and Mingw, and the latest tmw.devpack.

Thanks

Posted: 23 Jan 2008, 21:38
by strikerbcb
any updates about this ?

Posted: 24 Jan 2008, 08:53
by ElvenProgrammer
I should check if I'm able to play official sound files, usually I keep sound disabled so it could be I didn't notice their malfunctioning.

About compilig latest svn I double checked the files resourcemanager.* contain the required function. Are you sure you didn't leave those files outside the update process?
Try to download them from:
http://themanaworld.svn.sourceforge.net ... emanager.h
http://themanaworld.svn.sourceforge.net ... anager.cpp

Posted: 24 Jan 2008, 12:28
by strikerbcb
well, i make the update of the svn the same way ever, but only now i give one problem like this ... i will delete all svn content and re-download all, to see if the problem persist or not. Please turn on the sound and effects and test if works. You use windows or linux ?

Posted: 24 Jan 2008, 17:58
by ElvenProgrammer
I just tryed and everything seems fine. Can you please post this part of your log:
[17:51:21.68] Sound::init() Initializing sound...
[17:51:22.54] Sound::info() SDL_mixer: 1.2.8 (compiled)
[17:51:22.54] Sound::info() SDL_mixer: 1.2.8 (linked)
[17:51:22.54] Sound::info() Driver: dsound
[17:51:22.54] Sound::info() Format: S16LSB
[17:51:22.54] Sound::info() Rate: 22050
[17:51:22.54] Sound::info() Channels: 2

Posted: 24 Jan 2008, 20:03
by strikerbcb
Here :

Code: Select all

[22:04:40.15] Sound::init() Initializing sound...
[22:04:41.21] Sound::info() SDL_mixer: 1.2.8 (compiled)
[22:04:41.21] Sound::info() SDL_mixer: 1.2.8 (linked)
[22:04:41.21] Sound::info() Driver: waveout
[22:04:41.21] Sound::info() Format: S16LSB
[22:04:41.21] Sound::info() Rate: 22050
[22:04:41.21] Sound::info() Channels: 2
[22:04:41.21] Sound::startMusic() Playing "data/music/Magick - Real.ogg" -1 times
[22:04:41.21] Sound::startMusic() Warning: error loading file.

Posted: 25 Jan 2008, 02:25
by strikerbcb
well, i delete my svn directory and re-download all svn of 0.0 and i give the same errors :

Code: Select all

Settings\Administrador\/.tmw/updates/sounds-3795.zip/sfx/maggot-hit1.ogg
[02:18:14.06] Error, failed to load sound effect: Unrecognized sound file type
Don´t play any sounds or musics ... it gives a error of Unrecognized sound file, but the file itself it´s works in all players ...

i see that path is wrong or no ? Settings\Administrador\/.tmw/updates/sounds-3795.zip/sfx/maggot-hit1.ogg - It´s not to take the path of the tmw\sfx ?

PLEASE, any help with this !!!

Posted: 25 Jan 2008, 02:32
by Crush
No, updates override the contents of your tmw folder. When you don't want this start TMW with the command line parameter "-u" - this will skip the update process and ignore the updates that are already downloaded.

Posted: 25 Jan 2008, 08:07
by ElvenProgrammer
Are you maybe using any other software based on SDL?
Could you check if you have SDL_mixer.dll in your Windows\System or Windows|System32 folder?

Posted: 25 Jan 2008, 20:03
by strikerbcb
i delete all packages in updates folder, and run with -u ... now he takes the right place but nothing change, the audio not plays ... i not have the .dll´s in the windows directory, only in the tmw folder.
[19:54:35.32] Loaded data/sfx/fire-goblin-hit2.ogg
[19:54:35.32] Error, failed to load sound effect: Unrecognized sound file type
I see one diference in my log and the log of ElvenProgrammer here :
My Log :

Code: Select all

[22:04:41.21] Sound::info() Driver: waveout 
ElvenProgrammer Log :

Code: Select all

[17:51:22.54] Sound::info() Driver: dsound 
It´s makes diference ? or not ?

my problem persist hehehe

Thanks

Posted: 26 Jan 2008, 09:23
by ElvenProgrammer
No it shouldn't make any difference.
I think your only option now is compiling libogg, libvorbis and SDL_mixer yourself.

Posted: 27 Jan 2008, 23:21
by strikerbcb
well ... i solved putting the dll of version 1.2.6 of SDL Mixer ... i think the version of the devpack it´s not have support to ogg vorbis in this, the vorbis support it´s now added dinamically and not more static. Please, if possible, update the devpack whith a version of SDL Mixer with support a Ogg Vorbis.

Thanks.