The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
August 14, 2020, 06:54:04 am
Home Help Search Login Register
News: Paul & Fred have reached a settlement with Stardock!

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Sound Stuff..
« previous next »
Pages: [1] Print
Author Topic: Sound Stuff..  (Read 3183 times)
Nic.
Guest


Email
Sound Stuff..
« on: December 09, 2002, 09:19:22 pm »

I just built from the tip of CVS, and might I say first and foremost that the changes so far are very cool.  The new planet code made my jaw drop..  Smiley  Hopefully you're considering another release soon..

But I did run into a few problems, which I figure deserve mention:

  • The link on the webpage that says "go get the CVS version of SDL_mixer" should probably mention that the instructions on the linked page are for SDL, not SDL_mixer.  Since the main SDL code contains a file called SDL_mixer.c, I burned more time than I'd care to admit trying to squeeze an SDL_mixer.so out of a package that was not equipped to deliver  Sad  I know, the SDL page is not your responsibility, but every little bit helps...

  • The Linux version plays some sounds at the wrong pitch; the win32 0.1 release version did not exhibit this problem.  I think I know why it's happening, the current set of WAV files seems to be a "mixed bag":
    Code:
    invid$ find . -type f -name \*wav -exec file {} \; | awk '{$1 = ""; print $0;}' | sort | uniq -c
     3  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 4000 Hz
    18  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
    82  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 22050 Hz

    I know, I know, the TODO file says "extract from 3DO", which would "solve" the problem (as much as running all the samples through SOX and massaging them into identical sampling rates and bitdepths would, anyways)  but I'm thinking that the sound engine is making more assumptions about the audio files than it necessarily should.  I will see if I can offer a patch for this.

  • The MOD player used does not respect the REPEAT action; this is only noticable on tracks where repeat is used, namely the Pkunk (whose song has an "ending" one does not hear in the original game)  and the Melnorme (whose song has a "beginning" that one only hears once in the original game)  File as "extremely low priority, only noticed by pedants and mental patients" Smiley
Logged
Mika
Core Team
*Many bubbles*
*****
Offline Offline

Gender: Male
Posts: 121



View Profile WWW
Re: Sound Stuff..
« Reply #1 on: December 09, 2002, 09:24:50 pm »

Linux wrong pitch problem is a bug in SDL or SDL_mixer. We'll try to switch linux sound code to OpenAL (what win32 already uses) for the next release (assuming few *nix openal implementation problems gets fixed first).
« Last Edit: December 09, 2002, 09:26:53 pm by admin » Logged
Nic.
Guest


Email
Re: Sound Stuff..
« Reply #2 on: December 09, 2002, 10:30:20 pm »

I see.  The word "experimental" convinced be to use SDL_mixer instead, but I will embrace the future and rebuild against OpenAL.  Wish me luck  Wink
Logged
d
Guest


Email
Re: Sound Stuff..
« Reply #3 on: December 10, 2002, 08:54:13 pm »

well, sound with openal under linux sounds discusting. All music seems to be distorted in a way. In addition, it crashes a lot. I'm using latest cvs openal
Logged
Nic.
Guest


Email
Re: Sound Stuff..
« Reply #4 on: December 10, 2002, 09:38:02 pm »

Heh.  My build w/ OpenAL SEGV'ed a little too much for my liking, so I went back to SDL_mixer.  The sound was fine for me, though..  But now I see that they've got an oscilliscope w/ OpenAL, so the crashing might be "worth it"

No matter, the CVS version allows me to beat the Sa-Matra. I'm happy either way. Smiley
Logged
Mika
Core Team
*Many bubbles*
*****
Offline Offline

Gender: Male
Posts: 121



View Profile WWW
Re: Sound Stuff..
« Reply #5 on: December 10, 2002, 10:03:53 pm »

I've already submitted a test program to linux openal maintainer to help fixing the segfault/corrupted sound problems. Hopefully he gets 'em done Smiley
Logged
Mage
Guest


Email
Re: Sound Stuff..
« Reply #6 on: December 11, 2002, 06:08:28 am »

Quote
Heh.  My build w/ OpenAL SEGV'ed a little too much for my liking, so I went back to SDL_mixer.  The sound was fine for me, though..  But now I see that they've got an oscilliscope w/ OpenAL, so the crashing might be "worth it"

No matter, the CVS version allows me to beat the Sa-Matra. I'm happy either way. Smiley


Er what now? Would this work in the Win32 ver?
Logged
Nic.
Guest


Email
Re: Sound Stuff..
« Reply #7 on: December 11, 2002, 07:53:36 am »

I don't know, I can't afford to buy Visual C++ 6.0 just to try and build it. Tongue

Fortunately, Debian 3.0 (and all the assorted GNU accoutrements) was free, quick to install, and plays very nicely with Internet-enabled computers; and UQM runs like a champ on it.
« Last Edit: December 11, 2002, 07:55:39 am by Nic. » Logged
Mage
Guest


Email
Re: Sound Stuff..
« Reply #8 on: December 11, 2002, 09:16:22 am »

B'oh, it's really irritating me that I can't destroy that last (top left) defensive bubble.. and apparently even if I do the force field will remain.

Btw, your avatar is from Bangai-O right?  Great game.
Logged
Nic.
Guest


Email
Re: Sound Stuff..
« Reply #9 on: December 14, 2002, 04:38:12 pm »

Quote
I've already submitted a test program to linux openal maintainer to help fixing the segfault/corrupted sound problems. Hopefully he gets 'em done Smiley

Something went into CVS recently that seems to have cured 99% of my OpenAL woes under Linux; it's downright usable now.  (I won't go so far as to say "stable", because it still crashes, but far, far less frequently now)  Way cool..
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!