Sephiriz
July 10th, 2005, 01:05 PM
I recently installed America's Army and the sound worked just fine. This was when I was using my onboard sound. Yesterday I switched to my sound card, a Sound Blaster Audigy, and I spent the whole day attempting to configure Ubuntu to work with it.
As a result, I have the following sound-related packages installed on Ubuntu:
alsa-base 1.0.8-4ubuntu
alsa-oss 1.0.7-1
libesd-alsa0 0.2.35-2ubuntu2
libopenal0 0.2004090900-1.1
I have the system configured to use ALSA via this little configuration file I picked up in these forums:
pcm.card0 {
type hw
card 1
# mmap_emulation true
}
#pcm.dmix0 {
# type dmix
# ipc_key 34521
# slave {
# pcm "card1"
# }
#}
pcm.dmix0 {
type dmix
ipc_key 1024 ## needs to be a power of 2
slave {
pcm "hw:1"
period_time 0
period_size 1024
buffer_size 8192
# format S16_LE
rate 44100 ## not necessary
}
#slowptr true
}
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
slave {
pcm "card1"
# rate 48000
}
}
pcm.asym0 {
type asym
playback.pcm "dmix0"
capture.pcm "dsnoop0"
}
pcm.pasym0 {
type plug
slave.pcm "asym0"
}
# 'dsp0' is expected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "asym0"
}
ctl.dsp0 {
type hw
card 1
}
pcm.!default {
type plug
slave.pcm "asym0"
}
ctl.!default {
type hw
card 1
}
Now, as I said previously, America's Army won't output sound. Someone told me it had to do with ALSA and OpenAL not working together, and that the solution was to make a file called ".openalrc" in either the home directory or "openalrc" in the /etc/ directory. So I made /etc/openalrc and put in the following:
(define devices '(alsa))
(define alsa-out-device "hw:1")
(define alsa-in-device "hw:1")
(define speaker-num 2)
I don't know if this does anything or not, since no difference came up with America's Army. I'm really stumped, can anyone help me out here? If you guys need additional information, I'll be more than happy to provide it, since this fix should help in the future, because OpenAL is apparently used in a lot of games.
As a result, I have the following sound-related packages installed on Ubuntu:
alsa-base 1.0.8-4ubuntu
alsa-oss 1.0.7-1
libesd-alsa0 0.2.35-2ubuntu2
libopenal0 0.2004090900-1.1
I have the system configured to use ALSA via this little configuration file I picked up in these forums:
pcm.card0 {
type hw
card 1
# mmap_emulation true
}
#pcm.dmix0 {
# type dmix
# ipc_key 34521
# slave {
# pcm "card1"
# }
#}
pcm.dmix0 {
type dmix
ipc_key 1024 ## needs to be a power of 2
slave {
pcm "hw:1"
period_time 0
period_size 1024
buffer_size 8192
# format S16_LE
rate 44100 ## not necessary
}
#slowptr true
}
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
slave {
pcm "card1"
# rate 48000
}
}
pcm.asym0 {
type asym
playback.pcm "dmix0"
capture.pcm "dsnoop0"
}
pcm.pasym0 {
type plug
slave.pcm "asym0"
}
# 'dsp0' is expected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "asym0"
}
ctl.dsp0 {
type hw
card 1
}
pcm.!default {
type plug
slave.pcm "asym0"
}
ctl.!default {
type hw
card 1
}
Now, as I said previously, America's Army won't output sound. Someone told me it had to do with ALSA and OpenAL not working together, and that the solution was to make a file called ".openalrc" in either the home directory or "openalrc" in the /etc/ directory. So I made /etc/openalrc and put in the following:
(define devices '(alsa))
(define alsa-out-device "hw:1")
(define alsa-in-device "hw:1")
(define speaker-num 2)
I don't know if this does anything or not, since no difference came up with America's Army. I'm really stumped, can anyone help me out here? If you guys need additional information, I'll be more than happy to provide it, since this fix should help in the future, because OpenAL is apparently used in a lot of games.