| View previous topic :: View next topic |
| Author |
Message |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Thu Jul 01, 2004 6:25 pm Post subject: Hardware Accelerated OpenAL. (Read: Faster UT2004!) |
|
|
A new (hardware accelerated!) implementation of OpenAL has been done by Chris Purnell. It's for people with ALSA and EMU10K1's (Sound Blaster Live, Audigy) only. It works with UT2004, and is faster for me.
I have created a ebuild for those who want to give it a whirl.
It should go in a media-libs/openal-alsa-emu10k1 sub-directory of your overlay.
You can try it out by deleting the openal.so in the System directory of UT2004 and replacing it with a symlink to the new one. If it doesn't work, there probably isn't much you can do about it, it's very new.
To get it doing surround sound read the info it spits out when it's done emerging. _________________ Think about your breathing.
http://floam.sh.nu
Last edited by floam on Sun Feb 20, 2005 9:15 pm; edited 7 times in total |
|
| Back to top |
|
 |
Malakin Veteran


Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Thu Jul 01, 2004 8:00 pm Post subject: |
|
|
I tried this out and here were my results with the demo.
2.2Ghz Athlon XP, Geforce FX5900XT, sblive (duh)
| Code: | emu10k1 openal
21.345633 / 73.328682 / 220.491333 fps
Score = 68.267593
Custom compiled openal
15.042336 / 72.743378 / 238.676987 fps
Score = 67.849571
Original openal that comes with demo
17.924835 / 65.891823 / 189.305099 fps
Score = 63.538990
Nosound
22.212626 / 80.233856 / 252.355408 fps
Score = 72.003845 |
I noticed the minimum framerate increased quite a bit with the emu10k opanal over the custom compiled one even though the average frame rate didn't improve all that much, minimum is of course fairly important.
I only tested it for a few minutes but the emu10k openal seemed to sound fine in gameplay. |
|
| Back to top |
|
 |
neenee Veteran


Joined: 20 Jul 2003 Posts: 1786
|
Posted: Thu Jul 01, 2004 10:39 pm Post subject: |
|
|
thanks for sharing.
my 'score' with my system compiled openal:
| Code: | 15.414889 / 58.107639 / 137.291702 fps rand[23377763]
Score = 57.162453 |
my 'score' using the ebuild you shared in here:
| Code: | 16.720104 / 76.201180 / 172.587662 fps rand[23377763]
Score = 69.133171 |
Last edited by neenee on Thu Jul 01, 2004 10:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Thu Jul 01, 2004 10:39 pm Post subject: |
|
|
A new version came out, this one with better documentation and some more speaker examples. Updated ebuild. _________________ Think about your breathing.
http://floam.sh.nu
Last edited by floam on Sun Nov 14, 2004 10:43 pm; edited 5 times in total |
|
| Back to top |
|
 |
kriz Apprentice


Joined: 22 Jan 2003 Posts: 231
|
Posted: Thu Jul 01, 2004 11:23 pm Post subject: |
|
|
no sound at all.
the audigy player is my sfx-card
i have changed channels=20 in the ut2004.ini file to term the
SNDRV_PCM_IOCTL_HW_PARAMS error.
but nothing works.
all channels are muted.
 |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Fri Jul 02, 2004 6:47 am Post subject: |
|
|
kriz: Try emailing the author. Be informative though, he doesn't have enough to time answer "uh sound don't work its broke" emails. _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
neenee Veteran


Joined: 20 Jul 2003 Posts: 1786
|
Posted: Fri Jul 02, 2004 12:32 pm Post subject: |
|
|
this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:
center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory |
|
| Back to top |
|
 |
ardnut Tux's lil' helper

Joined: 01 Feb 2004 Posts: 94
|
Posted: Fri Jul 02, 2004 7:20 pm Post subject: |
|
|
sound is very quite and i only get sound out of the front 2 speakers.
ive copied the file into my home dir as:
~/.openal-speakers/speakers-fivepoint-c
is this correct? |
|
| Back to top |
|
 |
Malakin Veteran


Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Fri Jul 02, 2004 8:14 pm Post subject: |
|
|
| I think .openal-speakers is supposed to be the file containing the speaker info not the directory although the README is rather ambiguous, if that still doesn't work I'd try uncompressing it also since they're gzips. |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Fri Jul 02, 2004 10:29 pm Post subject: |
|
|
| neenee wrote: | this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:
center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory | Read the README that gets installed, it has a remedy. _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Fri Jul 02, 2004 10:30 pm Post subject: |
|
|
| ardnut wrote: | sound is very quite and i only get sound out of the front 2 speakers.
ive copied the file into my home dir as:
~/.openal-speakers/speakers-fivepoint-c
is this correct? | No, it needs to be called ~/.openal-speakers, not in the directory. _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
neenee Veteran


Joined: 20 Jul 2003 Posts: 1786
|
Posted: Sun Jul 04, 2004 3:30 pm Post subject: |
|
|
| floam wrote: | | neenee wrote: | this newer version works fine for me, though i get the following
error message in the console after ut2004 closes:
center pointALSA lib pcm_hw.c:344:(snd_pcm_hw_hw_params)
SNDRV_PCM_IOCTL_HW_PARAMS failed: Cannot allocate memory | Read the README that gets installed, it has a remedy. |
 |
|
| Back to top |
|
 |
PovMan Guru


Joined: 30 Sep 2002 Posts: 375 Location: Australia
|
Posted: Fri Jul 09, 2004 4:19 am Post subject: |
|
|
mate... you forgot to install the quadrophonic preset.... am i the only person in the world with only 4 speakers?
EDIT: !!!!!!!!!!!!!! dude thankyou so much for this. /me hugs floam ut2004 actually has surround sound finally, and it runs at a decent speed with sound.
i'm so happy /cries _________________ I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one. |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Fri Jul 09, 2004 8:17 pm Post subject: |
|
|
Okay, made a new revision which installs the quadrophonic speakers file, sorry about that, PovMan. (By the way, your nick sounds familiar, it didn't used to be PovRayMan, did it? Did you ever use an application called LiteStep on Windows 3 or 4 years ago? If you didn't, just mark me as insane and walk away.) _________________ Think about your breathing.
http://floam.sh.nu
Last edited by floam on Sun Nov 14, 2004 10:43 pm; edited 2 times in total |
|
| Back to top |
|
 |
neenee Veteran


Joined: 20 Jul 2003 Posts: 1786
|
Posted: Fri Jul 09, 2004 9:04 pm Post subject: |
|
|
if you are PovRayMan i think i remember you as well  |
|
| Back to top |
|
 |
PovMan Guru


Joined: 30 Sep 2002 Posts: 375 Location: Australia
|
Posted: Sat Jul 10, 2004 7:15 am Post subject: |
|
|
You are both insane The Pov in Povman stands for 'Poverty' not 'POVRAY', and i haven't used windows for more than the occasional game in about 6 years. It's good to have something in common with someone who's... famous.
/me walks away _________________ I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one. |
|
| Back to top |
|
 |
neenee Veteran


Joined: 20 Jul 2003 Posts: 1786
|
Posted: Sat Jul 10, 2004 10:14 am Post subject: |
|
|
lol. oh well - you could have been him  |
|
| Back to top |
|
 |
ZothOmmog Apprentice


Joined: 05 May 2003 Posts: 216 Location: Nashville, TN
|
Posted: Mon Jul 12, 2004 6:04 pm Post subject: |
|
|
I've had very poor luck with this. It tends to crash festival, make voice chat in UT2k4 loop to the point of uselessness, and ocassionally it will hard lock my system entirely while running UT2k4. _________________ -It's gonna take a lot of fireworks to clean this place up. |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Wed Jul 14, 2004 2:36 am Post subject: |
|
|
Festival doesn't use OpenAL, how does it "crash" Festival? _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
PovMan Guru


Joined: 30 Sep 2002 Posts: 375 Location: Australia
|
Posted: Wed Jul 14, 2004 4:27 am Post subject: |
|
|
mmm dum di dum
| Code: | 41c41
< speakers-sevenpoint-c speakers-quadrophonic README.speakers
---
> speakers-sevenpoint-c speakers-quadraphonic README.speakers
|
_________________ I am SPAM, hear me roar.
Before posting your own topic, try to answer at least one unanswered one. |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Wed Jul 14, 2004 9:06 pm Post subject: |
|
|
Oops. Fixed and reuploaded. _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
grover Tux's lil' helper

Joined: 27 Sep 2002 Posts: 77 Location: Melbourne, Australia
|
Posted: Fri Jul 16, 2004 5:23 am Post subject: |
|
|
| Anybody tried this with Americas Army? I get lots of blips and the pitch of the sound changes as you move around. I've gone back to the original openal for now because the sound quality is just too poor. This is with a SBLive and stereo sound. |
|
| Back to top |
|
 |
kriz Apprentice


Joined: 22 Jan 2003 Posts: 231
|
Posted: Sat Jul 17, 2004 11:43 pm Post subject: |
|
|
ok, brought it to work
but the speakers-fivepoint file i have to edit to bring up the center speaker for my audigy.
0: 1 -0.5 0 0.8860254
1: 1 0.5 0 0.8860254
2: 1 -0.93969262 0 -0.34202014
3: 1 0.93969262 0 -0.34202014
4: 0 0 0 0 <----- this dont work for me
5: 0 0 0 0
6: 0 0 0 0
7: 1 0 0 1 <----- with this setting i get an output from my center |
|
| Back to top |
|
 |
HydroSan l33t


Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Sun Jul 18, 2004 12:11 am Post subject: |
|
|
I notice that the Microphone feature doesn't work, a la Windows' EAX driver. The UT2004 code for the VoIP is still shoddy if it's hardware-driven, so using this driver will most likely break the Microphone. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
| Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Sun Jul 18, 2004 4:15 am Post subject: |
|
|
It doesn't "break the microphone", it simply doesn't implement the capture extension. _________________ Think about your breathing.
http://floam.sh.nu |
|
| Back to top |
|
 |
|