Back to the Vavoom Forum Archives


Forum

[Fixed] [1.28] PS3 / PPC Linux MIDI Music Problem

Thu, 18 Sep 2008 01:20:38

billb

I'm running vavoom 1.28 on Yellow Dog Linux 6 (PPC Linux) on the Playstation 3. Immediately when starting any of the games (Doom, Heretic, Hexen, or Strife, also with Doom II) I get a loud static / screeching sound. To stop it I have to turn on CD Music (or start vavoom with the -nomusic option). I'd like to get the original MIDI music working properly, though. EDIT: I should mention this problem is not new to 1.28 -- it exists in 1.27.1 and all the way back to 1.23, at least. I'm not sure what information to provide since the game itself doesn't crash -- it plays fine with software rendering. We don't have access to hardware accelerated OpenGL on PS3 Linux. I'll start with:
[bill@localhost ~]$ ldd /usr/bin/vavoom
        linux-vdso32.so.1 =>  (0x00100000)
        libFLAC++.so.5 => /usr/lib/libFLAC++.so.5 (0x0f950000)
        libFLAC.so.7 => /usr/lib/libFLAC.so.7 (0x0fa00000)
        libmikmod.so.2 => /usr/lib/libmikmod.so.2 (0x0f990000)
        libdl.so.2 => /lib/libdl.so.2 (0x0fd10000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x0f6e0000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x0f730000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x0eba0000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x0f860000)
        libopenal.so.0 => /usr/lib/libopenal.so.0 (0x0f8f0000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x0eaa0000)
        libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0 (0x0ea12000)
        libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x0e955000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x0fcd0000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0fca0000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0ec40000)
        libm.so.6 => /lib/libm.so.6 (0x0fd40000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0ed80000)
        libc.so.6 => /lib/libc.so.6 (0x0fe40000)
        /lib/ld.so.1 (0x0ffc0000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x0fb00000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x0fad0000)
        libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00be0000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x0ef90000)
        libesd.so.0 => /usr/lib/libesd.so.0 (0x00220000)
        libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0x001e0000)
        libaudio.so.2 => /usr/lib/libaudio.so.2 (0x0e917000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0x008d0000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x0fe20000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x0fc80000)
        libasound.so.2 => /lib/libasound.so.2 (0xf7ec2000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0x0edb0000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x0edd0000)
Part of the console output when starting Doom:
[bill@localhost ~]$ vavoom -iwaddir ~/.vavoom/doom-shareware -doom
Adding /usr/share/vavoom/basev/common/basepak.pk3
adding /home/bill/.vavoom/doom-shareware/doom1.wad
Adding /usr/share/vavoom/basev/doom/basepak.pk3
Adding /usr/share/vavoom/basev/doom1/basepak.pk3
Host name: localhost.localdomain
My IP address: 127.0.0.1
UDP Initialised
TCP/IP address 127.0.0.1
Processing DECORATE scripts
No such class Chicken
No such class ChickenPlayer
No such class Pig
No such class PigPlayer
No such class Staff
No such class GoldWand
No such class FWeapFist
No such class CWeapMace
No such class MWeapWand
No such class PunchDagger
actors/strife/strifebishop.txt:58: warning: No such class AlienSpectre2
Selected SDL sound device
Configured audio device
Driver: dsp
Freqency: 44100
Channels: 2
Format: 8010
Selected SDL midi device
Selected Linux CD audio device
CD_Init: open of "/dev/cdrom" failed (123)
Using 16 voices
Selected SDL software rasteriser
...
Some version info (not sure if this is needed, but anyway):
[bill@localhost ~]$ rpm -q gcc SDL SDL_mixer timidity++ glibc
gcc-4.1.1-52.ydl.1
SDL-1.2.13-1
SDL_mixer-1.2.8-1
timidity++-2.13.2-4
glibc-2.5-12
I've seen this post related to "cracking" MIDI music on AMD64 (I'm using PPC 32-Bit, though): <!-- l --><a class="postlink-local" href="http://vavoom-engine.com/forums/viewtopic.php?t=910">viewtopic.php?t=910</a><!-- l --> My MIDI output is almost pure static -- unlike the recorded output attached to that post. I'd be happy to provide any more info requested, try any patches and recompile, etc. Thanks! EDIT: Forgot to mention compiler flags, too. Attached CMakeOutput.log
Thu, 18 Sep 2008 02:39:51

guydudeperson

Uhh I believe you(linux user) have got to download .mp3 files to get the music properly...
Thu, 18 Sep 2008 14:59:38

billb

[quote="guydudeperson":qbwxodhc]Uhh I believe you(linux user) have got to download .mp3 files to get the music properly... I did do some searching on this forum and elsewhere before posting, but haven't seen anything to indicate this is correct... <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> However, I'm willing to give that a try -- just not sure where the files go. Ah ... looks like they should be extracted to /usr/share/vavoom ... and also I need to use the -openal command line switch for them to play. Just tried that for Doom and yeah, sounds great! <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Thanks. I still hope to get a solution for the apparent bug in playing the original MIDI music on the PS3 / PPC Linux, though. EDIT: Regarding redistribution of those soundtracks, I saw this in Sycraft's readme:
By all means, please distribute this soundtrack. Put it on your website, give it to your friends, give it to your dog, give it to your friend's dog.
So ... at least it's OK as far as that goes ... <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> ... though I could see why Linux distros like Fedora / Redhat / Centos wouldn't include them in their software repos since they are not legally free as far as I know.
Fri, 19 Sep 2008 18:34:35

Janis Legzdinsh

Does MIDI music work with -openal switch?
Fri, 19 Sep 2008 18:58:42

billb

[quote="Janis Legzdinsh":mf6ycpjw]Does MIDI music work with -openal switch? Thanks for the response -- funny, I was just logging in to the forum to report I had discovered the MIDI music plays fine with the -openal switch! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Without it, I get nothing but static for the MIDI music (EDIT: also for the enhanced music files). With it, no problems at all. This effectively resolves the issue for me, though I guess there's still a bug remaining in vavoom for PPC Linux ... ? <!-- s:bfg: --><img src="{SMILIES_PATH}/bfg.gif" alt=":bfg:" title="BFG 9000" /><!-- s:bfg: -->
Sat, 11 Oct 2008 21:23:49

Janis Legzdinsh

Fixed.

Back to the Vavoom Forum Archives