Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox and aoss[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
incitus
n00b
n00b


Joined: 02 Dec 2003
Posts: 5

PostPosted: Tue Feb 08, 2005 12:22 am    Post subject: Firefox and aoss[SOLVED] Reply with quote

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
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Feb 08, 2005 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
incitus
n00b
n00b


Joined: 02 Dec 2003
Posts: 5

PostPosted: Tue Feb 08, 2005 12:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Gogiel
Guru
Guru


Joined: 11 Nov 2004
Posts: 347

PostPosted: Sat Mar 05, 2005 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum