Back to the Vavoom Forum Archives


Forum

[Fixed] SDL and music in Linux

Fri, 24 Jan 2003 15:23:19

vaustein

I'm running Mandrake LInux 9, and Vavoom 1.15beta builds with the default settings (Allegro, no OpenAL, etc).  It runs find, OpenGL works, sound effects are find, but I'm getting no music.  How can I correct this?<br><br>On another note, a previous thread talks about patching SDL_mixer 1.2.1 to compile Vavoom with SDL support.  My distro installed SDL_mixer 1.2.4, yet when I try to build Vavoom 1.15beta with SDL support I get the following: <br><br>source/s_sdl.cpp: In member function `virtual void VDefaultSoundDevice::PlaySound(int, const TVec&, const TVec&, int, int, float)':<br>source/s_sdl.cpp:430: `Mix_LoadRAW_RW' undeclared (first use this function)<br>source/s_sdl.cpp:430: (Each undeclared identifier is reported only once for each function it appears in.)<br>source/s_sdl.cpp:433: `Mix_LoadChannel' undeclared (first use this function)<br>source/s_sdl.cpp:449:2: warning: #warning how to set the pitch? (CS)<br>source/s_sdl.cpp:452: `Mix_Play' undeclared (first use this function)<br>make: *** [obj/s_sdl.o] Error 1<br><br>Are there any known solutions to this issue?<br><br>Thank you,<br>vaustein
Fri, 24 Jan 2003 15:25:17

vaustein

I meant to type "it runs *fine*, sound effects are *fine*".  It's late here.<br><br>vaustein
Fri, 24 Jan 2003 16:42:55

Janis Legzdinsh

Music with Allegro depends on Allegro. If you can get music work with Allegro, it will work in Vavoom too, i.e. Vavoom has full support for music with Allegro and in DOS it works just fine.<br><br>Those errors with SDL are because you don't have a patched version (the guy who made SDL port had to add some functions). See the coresponding thread on this. Now the bad news - SDL port has no music support.
Sat, 25 Jan 2003 02:49:00

vaustein

Okay, DIGMID music is working for me now. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --><br><br>Word of advice to Linux users: Don't bother with Allegro RPMs or SRPMs.  Build from the source directly.  I'm using "unstable" Allegro 4.1.8 without a problem except one:  When I close Vavoom I get a "Segmentation Fault".<br><br>Any advice on getting rid of the segfault?  It's no show-stopper, but it still concerns me.<br><br>Also, in Ultimate Doom my character is always running, even when the "Run" key is not pressed.  I could not find an "Always run" command in the Doom/Vavoom setup menu.  Any advice?<br><br>Thank you,<br>vaustein
Sat, 25 Jan 2003 11:58:47

JinnaiGuy

By default, if memory serves, CAPSLOCK is bound to the console command "ToggleAlwaysRun" (which, btw, is what you're looking for)
Tue, 28 Jan 2003 00:09:57

Janis Legzdinsh

Really I did remove it from menu? If so, I must add it back.<br><br>Segfault - I'm not sure, but this may be that stupid bug GCC has. But maybe there's another reason.
Mon, 11 Oct 2004 07:26:05

Janis Legzdinsh

Autorun toggle has been added to menu.

Back to the Vavoom Forum Archives