Sound Bug

Ask for help regarding any technical issue or report any bug or OS independent issues.
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Sound Bug

Post by strikerbcb » 20 Jan 2008, 20:00

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
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 21 Jan 2008, 15:49

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.
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Re: Sound Bug

Post by ElvenProgrammer » 22 Jan 2008, 10:39

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?
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 22 Jan 2008, 15:40

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
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 23 Jan 2008, 22:38

any updates about this ?
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 24 Jan 2008, 09:53

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
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 24 Jan 2008, 13:28

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 ?
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 24 Jan 2008, 18:58

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
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 24 Jan 2008, 21:03

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.
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 25 Jan 2008, 03:25

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 !!!
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 25 Jan 2008, 03:32

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.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 25 Jan 2008, 09:07

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?
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 25 Jan 2008, 21:03

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
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 26 Jan 2008, 10:23

No it shouldn't make any difference.
I think your only option now is compiling libogg, libvorbis and SDL_mixer yourself.
User avatar
strikerbcb
Novice
Novice
Posts: 155
Joined: 15 Apr 2005, 07:42
Location: Brasil
Contact:

Post by strikerbcb » 28 Jan 2008, 00:21

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.
<<Striker>> - Evolving Ever
Project World of Dragons - Brazilian Total Rework Fork of the TMW and a newer 3D Client/Server
Mundo dos Dragões - http://www.mundodosdragoes.org
Post Reply