Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: linux music problem
PostPosted: Thu Sep 29, 2011 5:39 am 
Offline

Joined: Thu Sep 29, 2011 5:33 am
Posts: 4
Hi. I just downloaded the demo, and because this seems like it could be a pretty fun game, wanted to let you know about a bug I found. I'm running slackware 64 bit, and when I open the game it doesn't play any music. Sound effects are fine, but if I try to change the music volume, I get a segfault. I've included the last part of my console error messages, which are basically a loop of these 4 until I tried to change the volume, at which point you can see the segfault. I checked, and the file is where it should be, and can be played with other programs.

(hedSound.cpp)hedSoundManager::PLAY - (0)(hed-music/HEDuality-OST-time_is_up_-_duality.mp3)
(hedSound.cpp)hedSoundManager::PlayList_Play() - playing track (hed-music/HEDuality-OST-time_is_up_-_duality.mp3)
(hedSound.cpp)hedSoundManager::PlayList_Play() - error loading track (Couldn't read from 'hed-music/HEDuality-OST-time_is_up_-_duality.mp3')(0)
(hedSound.cpp)hedSoundManager::PlayList_Play() - error playing track (music parameter was NULL)
Segmentation fault


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Sun Oct 02, 2011 7:18 pm 
Offline
Site Admin
User avatar

Joined: Thu Apr 24, 2008 3:58 pm
Posts: 2741
Location: Cluj Napoca, Romania
You need to have libSDL

_________________
Robert

Software developer and Forum admin
exosyphen studios.

Join us on FaceBook!


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Sun Feb 05, 2012 10:18 pm 
Offline

Joined: Sun Feb 05, 2012 9:47 pm
Posts: 2
Well I experienced nearly the same problems while having everything of the sdl libs installed on fedora.
To be precise, this machine runs fedora 16: 32 bit with the following kernel: 3.2.2-1.fc16.i686.PAE

The main problem is, that the mp3 music isn't played but all other sounds.
According to the rpm build - every depency is installed, except two:
libmikmod.so.2
libtiff.so.4

Well, they are installed but it's a different version. I just don't want to break all other depencies of programs.

Could this be the reason?

In addition there are some segmentation fault errors. They appear e. g. if I leave the actual game back into the main menu.
This happens not every time but there is a good chance that this error occurs.
-> I guess this happens because of the not playable music?

All in all I don't really have a clue what's going wrong.
I tried some symlinks from libmikmod and libtiff to my current versions, that if they want to use the never version they are redirected to the current one.
But it didn't work.

HEU runs flawlessly so far.

I uploaded the log flie on pastebin: http://pastebin.com/CiNtXADa
A small part (because the hedsound.cpp messages were looping) has been left out of the log due the size limitation on pastebin. It was between the segfault and the hedsound.cpp messages.


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Mon Feb 06, 2012 10:16 am 
Offline
Site Admin
User avatar

Joined: Thu Apr 24, 2008 3:58 pm
Posts: 2741
Location: Cluj Napoca, Romania
You need: libmikmod.so.2

_________________
Robert

Software developer and Forum admin
exosyphen studios.

Join us on FaceBook!


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Mon Feb 06, 2012 6:33 pm 
Offline

Joined: Sun Feb 05, 2012 9:47 pm
Posts: 2
Wrong answer.
Kinda weird if you found the problem yourself without any help of the devs but well...

First of all: The libs were installed like I said before.

The problem, why the music isn't played, is because mikmod doesn't have any module for mp3 files.
I checked it with "mikmod -n".
Don't ask me why (I don't have the knowledge about mikmod and there are _all_ depencies for hed installed) - all I can tell you this is the case!

How to solve it:
Everything can be found in the "hed-music" folder in the base directory of hed.
1. convert the .mp3 files into .wav (you could also try other formats, I just tested it with wav)
2. edit playlist text files: just rename every ending from .mp3 into .wav
3. everything runs fine and smooth
(at least for me)

Maybe there is a mikmod module for mp3s, then tell me please and I can try to add this one.
Is there any reason why the audio is delivered in the mp3 format? It would be much easier if for example ogg vorbis is used instead - it has also better quality while not exceeding the mp3 size.

Anyway it's working and there are no longer segmentation fault errors.


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Tue Feb 07, 2012 8:11 am 
Offline
Site Admin
User avatar

Joined: Thu Apr 24, 2008 3:58 pm
Posts: 2741
Location: Cluj Napoca, Romania
@DaZ: HED was designed with portability in mind and mp3 playback is common on all platforms.

_________________
Robert

Software developer and Forum admin
exosyphen studios.

Join us on FaceBook!


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Sat Jul 28, 2012 7:03 am 
Offline

Joined: Tue Aug 10, 2010 7:09 am
Posts: 3
robert wrote:
@DaZ: HED was designed with portability in mind and mp3 playback is common on all platforms.


I have to disagree here: while mp3 playback is certainly possible on every platform, it is not legal without a payed license everywhere and thus not available without manual work on platforms like Fedora. Had you chosen Ogg Vorbis instead, we would not have this problem. I made you aware of this way before the release of Duality because we had exactly the same problem on the previous Hacker game. You said it was too late to change there but would consider it for Duality. Sadly, you did not.


Top
 Profile  
 
 Post subject: Re: linux music problem
PostPosted: Mon Jul 30, 2012 8:56 am 
Offline
Site Admin
User avatar

Joined: Thu Apr 24, 2008 3:58 pm
Posts: 2741
Location: Cluj Napoca, Romania
We went for mp3 for porting reasons (PC/Mac/iPad)

_________________
Robert

Software developer and Forum admin
exosyphen studios.

Join us on FaceBook!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron