Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA sound problem no 2 sounds at the same time
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
WyriHaximus
n00b
n00b


Joined: 08 Jan 2004
Posts: 56
Location: koedijk(alkmaar), The Netherlands

PostPosted: Tue Jan 11, 2005 1:49 pm    Post subject: ALSA sound problem no 2 sounds at the same time Reply with quote

Hi,

I have a problem with ALSA. I can't listen music and hear when someone comes online on MSN. This is my /etc/modules.d/alsa
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.2 2004/07/18 03:40:55 dragonheart Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

alias snd-card-0 snd_intel8x0
#alias snd-card-0 snd_via82xx
alias sound-slot-0 snd-card-0
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1



Has anyone an idee how to fix this?

Grtz,

WyriHaximus
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Jan 11, 2005 2:04 pm    Post subject: Reply with quote

Either use a dedicated sound server like esound or arts, or search these forums for the "dmix" Alsa mixer plugin. Works well for me. This is my ~/.asoundrc from my nforce3-based laptop (which uses the intel8x0 driver module):
Code:
pcm.!default {
  type plug
  slave.pcm "dmixer"
  }
pcm.dsp0 {
  type plug
  slave.pcm "dmixer"
  }
pcm.dmixer {
  type dmix
  ipc_key 1024
 slave {
  pcm "hw:0,0"
  period_time 0
  period_size 1024
 buffer_size 8192
  rate 44100
  }
 bindings {
  0 0
  1 1
  }
  }

ctl.dmixer {
  type hw
  card 0
  }


Håkan
Back to top
View user's profile Send private message
WyriHaximus
n00b
n00b


Joined: 08 Jan 2004
Posts: 56
Location: koedijk(alkmaar), The Netherlands

PostPosted: Tue Jan 11, 2005 10:03 pm    Post subject: Reply with quote

Hi,

That didn't work. And with dmix I got half of my applications and games working it.

A friend and class mate (he got my onto gentoo ^_^) told my that alsa is capable of this natively. But how?


Grtz,

WyriHaximus
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Jan 11, 2005 10:32 pm    Post subject: Reply with quote

The dmix plugin is a part of Alsa. If you mean hardware mixing, that's only supported on a few soundcards, like the SB Live.


Håkan
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