View previous topic :: View next topic |
Author |
Message |
incitus n00b
Joined: 02 Dec 2003 Posts: 5
|
Posted: Tue Feb 08, 2005 12:22 am Post subject: Firefox and aoss[SOLVED] |
|
|
Hello
I've been using dmix for a while but never really cared about the oss programs.
Now I have started to write a couple of scripts allowing me to start my applications throu the
aoss interface. It seems like it works for most applications but when i start firefox all sound
from plugins as Flash disepear completly even thou i don't run any other application reclaiming
the soundcard.
Does anyone have an ide of what the problem mightbe?
Thanks in advance
My .asound config
Code: |
pcm.!default {
type plug
slave.pcm "Mix"
}
ctl.mixer0 {
type hw
card 0
}
pcm.Mix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
}
bindings {
0 0
1 1
}
}
|
_________________ Ni vet nog vem som visste vad, vet ni inte så sov så jag kan sova!
Last edited by incitus on Tue Feb 08, 2005 12:51 am; edited 1 time in total |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Tue Feb 08, 2005 12:42 am Post subject: |
|
|
From 'man aoss':
Code: | pcm.dsp0 { type plug slave.pcm "hw:0,0" } |
Works fine here! All your base are belong to us! |
|
Back to top |
|
|
incitus n00b
Joined: 02 Dec 2003 Posts: 5
|
Posted: Tue Feb 08, 2005 12:47 am Post subject: |
|
|
Just adding
pcm.dsp0 { type plug slave.pcm "Mix" }
did it, so simple yet so effective :)
Thanks alot
Strange that i missed that.
Im alittle confused to why it worked for other programs running throu aoss. _________________ Ni vet nog vem som visste vad, vet ni inte så sov så jag kan sova! |
|
Back to top |
|
|
Gogiel Guru
Joined: 11 Nov 2004 Posts: 347
|
Posted: Sat Mar 05, 2005 7:35 pm Post subject: |
|
|
That's my .asoundrc Code: | pcm.snd_card {
type hw
card 0
}
# Allow mixing of multiple output streams to this device
pcm.dmix {
type dmix
ipc_key 1024
slave.pcm "snd_card"
slave {
# This stuff provides some fixes for latency issues.
# buffer_size should be set for your audio chipset.
period_time 0
period_size 1024
buffer_size 8192
}
bindings {
0 0
1 1
}
}
# Allow reading from the default device.
# Also known as record or capture.
pcm.dsnoop {
type dsnoop
ipc_key 2048
slave.pcm "snd_card"
## Possible artsd full duplex fix:
# slave {
# period_time 0
# period_size 1024
# buffer_size 8192
# }
bindings {
0 0
1 1
}
}
# This is what we want as our default device
# a fully duplex (read/write) audio device.
pcm.duplex {
type asym
playback.pcm "dmix"
capture.pcm "dsnoop"
}
###################
# CONVERSION PLUG #
###################
# Setting the default pcm device allows the conversion
# rate to be selected on the fly.
# duplex mode allows any alsa enabled app to read/write
# to the dmix plug (Fixes a problem with wine).
pcm.!default {
type plug
slave.pcm "duplex"
}
# Apparently this is wrong (breaks mplayer for me opening the device)
#ctl.!default {
# type plug
# slave.pcm "snd_card"
#}
########
# AOSS #
########
# OSS dsp0 device (OSS needs only output support, duplex will break some stuff)
pcm.dsp0 {
type plug
slave.pcm "dmix"
}
# OSS control for dsp0 (needed?...this might not be useful)
ctl.dsp0 {
type plug
slave.pcm "snd_card"
}
# OSS control for dsp0 (default old OSS is mixer0)
ctl.mixer0 {
type plug
slave.pcm "snd_card"
} |
and aoss firefox segfaults. |
|
Back to top |
|
|
|