Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AC97: not able to play two sound sources at once
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
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Sep 26, 2007 6:40 pm    Post subject: AC97: not able to play two sound sources at once Reply with quote

Hi,

I am not able to play 2 sound sources at once. i use gnome 2.20 from gnome-experimental-overlay.

Basically I need Teamspeak and Tremulous-bin at once. Both should use my sound card. If I try it, I can use Teamspeak, but I don*T have any sound in tremulous. Only Tremulous works with sound, but not both.

May you help me. I don*t have any glue, I have used google for 2 weeks at least to get any solution. Thank you.


E.g. One Mplayer is playing my webradio

2nd:

Code:
roman@notebook ~ $ emerge --info
Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-suspend2-r2_v11c x86_64)
=================================================================
System uname: 2.6.22-suspend2-r2_v11c x86_64 AMD Turion(tm) 64 Mobile Technology MT-34
Timestamp of tree: Wed, 26 Sep 2007 07:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/hddtemp /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB en"
LC_ALL="en_GB"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/berkano /usr/portage/local/layman/gnome-experimental /usr/local/layman/myownoverlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac accessibility ace acl acpi adns alsa amazon amd amd64 amr arj audiofile automount bash-completion bc berkdb bindist binfilter bitmap-fonts blender-game bluetooth boost bzip2 cairo caps cddb cdparanoia cdr cdrom clamav cpudetection cracklib css cups curl dbus dc1394 de_tvtoday devhelp device-mapper devil dga dhcp dia directfb disk-partition diskio divx dmi dmx dnotify dri dts dv dvd dvdnav dvdr dvdread eds elf emacs emerald emovix enca encode esd evo exif expat fam fame fat fbcon ffmpeg firefox flac flood fontconfig fortran fping ftp fuse gd ggi gif gimp gimpprint glib glitz gmp gnome gnome-print gnutls gpac gpm graphviz gs gstreamer gtk gtkhtml guile gzip h323 hal hdaps hddtemp html http ibam iconv id3 idea idn ieee1394 imagemagick imap imlib inkjar jack java javascript joystick jpeg jpeg2k kqemu ladspa lame lash lcd lcms ldap libcaca libg++ libgda libnotify libsamplerate libsexy libwww log4j lua lzo macmenu mad maps matroska maya-shaderlibrary mbox md5sum metalink mikmod mime mjpeg mmkeys mmx mmxext mng mod modplug mods mono moznocompose moznoirc moznomail moznopango mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mplayer mudflap mule musepack musicbrainz nautilus ncurses neXt network new-login newspr nfs nntp no-htdocs no-old-linux nodrm normalize nptl nptlonly nsplugin ntfs oav ogg openexr opengl openmp osc oss pam pam_console pam_timestamp pango pcmcia pcre pdf perl physfs plotutils pmu png pnm pop portaudio postscript ppds pppd prediction prelude pulseaudio pwdb python qemu qt3 qt3support qt4 quicktime radius rar readline realmedia recode reiserfs resolvconf roe rsvg samba sasl sdl sdl-image sdl-sound seamonkey servletapi session sndfile snmp sockets soundex sox speex spell sse sse2 ssl startup-notification stream streamripper subtitles svg swat sysfs syslog tagwriting tcl tga theora threads threadsafe threadsonly tidy tiff timidity tk transcode truetype truetype-fonts twolame type1-fonts unicode urandom usb utempter v4l v4l2 vcd vlm vorbis widescreen wifi wireshark wma wmf wmp wnck wordexp wxwindows x264 xanim xatrix xcomposite xext xfs xine xinerama xinetd xml xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc xvnc yaepg yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x        ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3   trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="fglrx v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

roman@notebook ~ $


Code:
roman@notebook ~ $ mplayer /home/roman/Desktop/Sonstiges/Tina\ Turner\ -\ You\'re\ simply\ the\ best.mp3
MPlayer SVN-r24130 (C) 2000-2007 MPlayer Team
CPU: AMD Turion(tm) 64 Mobile Technology MT-34 (Family: 15, Model: 36, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick

Playing /home/roman/Desktop/Sonstiges/Tina Turner - You're simply the best.mp3.
Audio file file format detected.
Clip info:
 Title: You're simply the best
 Artist: Tina Turner
 Album:
 Year:
 Comment:
 Genre: Unknown
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO ESD] latency: [server: 0.28s, net: 0.00s] (adjust 0.28s)
AO: [esd] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.5 (02.4) of 250.0 (04:10.0)  1.1%

MPlayer interrupted by signal 2 in module: play_audio
roman@notebook ~ $




Code:
notebook roman # lspci
00:00.0 Host bridge: ATI Technologies Inc ATI Radeon Xpress 200 (RS480/RS482/RX480/RX482) Chipset - Host bridge
00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 10)
00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller ATI
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 01)
00:14.6 Modem: ATI Technologies Inc ATI SB400 - AC'97 Modem Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X700 (PCIE)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:04.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
02:09.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
04:00.0 Ethernet controller: 3Com Corporation 3cCFE575CT CardBus [Cyclone] (rev 10)
notebook roman #
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Wed Sep 26, 2007 7:32 pm    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix probably you need to set up properly dmix
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Wed Sep 26, 2007 7:50 pm    Post subject: Reply with quote

Code:
[AO_ALSA] alsa-lib: pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
there's something about this in alsa wiki

Quote:
For example under Debian/GNU Linux it is possible that you have installed ESD for /dev/dsp instead of ALSA, replace libesd0 with libesd-alsa0.
you seem to have esd running so maybe this is it
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Sep 27, 2007 9:05 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-4292741.html#4292741
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Sep 27, 2007 11:00 am    Post subject: Reply with quote

Code:
notebook roman # cat /etc/pulse/default.pa
#!/usr/bin/pulseaudio -nF

#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

#http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix#pulseaudio
#http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix#pulseaudio


### Load audio drivers statically
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
load-module module-hal-detect

### Alternatively use the static hardware detection module (for systems that
### lack HAL support
#load-module module-detect

### Load audio drivers automatically on access

#OSS
add-autoload-sink output module-oss device="/dev/dsp" sink_name=output source_name=input
add-autoload-source input module-oss device="/dev/dsp" sink_name=output source_name=input



#add-autoload-sink output module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#add-autoload-source input module-oss-mmap device="/dev/dsp" sink_name=output source_name=input


#ALSA
#the following line was added dmix
add-autoload-sink output module-alsa-sink sink_name=output device=dmix
add-autoload-source input module-alsa-source source_name=input

### Load several protocols
load-module module-esound-protocol-unix
load-module module-native-protocol-unix

#Load the CLI module, new
load-module module-cli

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor

### Automatically restore the volume of playback streams
load-module module-volume-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make some devices default
set-default-sink output
set-default-source input

.nofail

### Load something to the sample cache
load-sample x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-dir-lazy /usr/share/sounds/*.wav

### Load X11 bell module
load-module module-x11-bell sample=x11-bell sink=output

### Publish connection data in the X11 root window
load-module module-x11-publish

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
load-module module-gconf
notebook roman #
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Sep 27, 2007 11:01 am    Post subject: Reply with quote

Code:
notebook roman # eselect esd list
Available ESounD implementations:
  [1]   ESounD original *
  [2]   PulseAudio
notebook roman # eselect esd show
Current ESounD implementation:
  esound-esd               
notebook roman # eselect esd set 2
notebook roman # eselect esd show
Current ESounD implementation:
  esdcompat                 
notebook roman #
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