Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound not mixed [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
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Wed Dec 27, 2006 11:58 am    Post subject: Sound not mixed [SOLVED] Reply with quote

I can't seem to get all my apps to mix sound. I've tried so many ~/.asoundrc settings I've lost count. I've also tried esound/esddsp/esddsp32, arts/artsdsp/artsdsp32, and aoss/aoss32.

When using esddsp/esddsp32 it says
Code:

tyler@duo ~ $ esddsp opera
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib64/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.

tyler@duo ~ $ esddsp32 opera
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesddsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libesd.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.

tyler@duo ~ $ ls -l /emul/linux/x86/usr/lib/libesddsp.so.0 /emul/linux/x86/usr/lib/libesddsp.so
lrwxrwxrwx 1 root root 19 Aug 13 17:57 /emul/linux/x86/usr/lib/libesddsp.so -> libesddsp.so.0.2.36
lrwxrwxrwx 1 root root 19 Aug 13 17:57 /emul/linux/x86/usr/lib/libesddsp.so.0 -> libesddsp.so.0.2.36
tyler@duo ~ $ file /emul/linux/x86/usr/lib/libesddsp.so.0.2.36
/emul/linux/x86/usr/lib/libesddsp.so.0.2.36: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
tyler@duo ~ $ ls -l /usr/lib64/libesddsp.so.0 /usr/lib64/libesddsp.so 
lrwxrwxrwx 1 root root 19 Nov 24 03:39 /usr/lib64/libesddsp.so -> libesddsp.so.0.2.36
lrwxrwxrwx 1 root root 19 Nov 24 03:39 /usr/lib64/libesddsp.so.0 -> libesddsp.so.0.2.36
tyler@duo ~ $ file /usr/lib64/libesddsp.so.0.2.36
/usr/lib64/libesddsp.so.0.2.36: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped


artsdsp/artsdsp32
artsd is run like, "artsd -a alsa -d -m xmessage -c xmessage" as root and as regular user.
Code:

tyler@duo ~ $ artsdsp opera
artsdsp works only for binaries

tyler@duo ~ $ artsdsp32 opera
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsdsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsc.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsdsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsc.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsdsp.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libartsc.so.0' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.

tyler@duo ~ $ ls -l /emul/linux/x86/usr/lib/libartsdsp.so.0 /emul/linux/x86/usr/lib/libartsdsp.so 
lrwxrwxrwx 1 root root 19 Aug 13 17:57 /emul/linux/x86/usr/lib/libartsdsp.so -> libartsdsp.so.0.0.0
lrwxrwxrwx 1 root root 19 Aug 13 17:57 /emul/linux/x86/usr/lib/libartsdsp.so.0 -> libartsdsp.so.0.0.0
tyler@duo ~ $ file /emul/linux/x86/usr/lib/libartsdsp.so.0.0.0
/emul/linux/x86/usr/lib/libartsdsp.so.0.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped


aoss/aoss32
Code:

tyler@duo ~ $ aoss opera
... stripped ...
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
( the above ("ALSA lib pcm...") gets repeated several more times)

tyler@duo ~ $ aoss32 opera
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.

(process:13680): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use IA__g_type_init() prior to this function

(process:13680): Gtk-CRITICAL **: gtk_clipboard_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed
Adobe FlashPlayer: gtk_clipboard_get(GDK_SELECTION_PRIMARY); failed. Trying to call gtk_init(0,0);
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/emul/linux/x86/usr/lib/libaoss.so' from LD_PRELOAD cannot be preloaded: ignored.
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
ALSA lib pcm_direct.c:222:(make_local_socket) connect failed: èÔZ¡: No such file or directory
ALSA lib pcm_dmix.c:851:(snd_pcm_dmix_open) unable to connect client
( the above ("ALSA lib pcm...") gets repeated several more times)


Those 3 examples are performed while NO application is using the sound device.

uname -a
Code:
tyler@duo ~ $ uname -a
Linux duo 2.6.16.19 #1 SMP PREEMPT Fri Dec 22 21:25:37 CST 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux


cat /etc/make.conf | grep ALSA
Code:

ALSA_CARDS="intel8x0" #aka AC97 onboard audio :)


Some apps can, however, mix audio perfectly. For example: Audacious (with ALSA output plugin) can play play music and I can do speaker-test or mpg321 simultaneously. But Cedega set to use ALSA (ctl device: hw, pcm device: hw (is this wrong?)) and Audacious can NOT play sound together.

Anything else you need, just ask.


Last edited by scriptX on Mon Jan 08, 2007 8:11 am; edited 1 time in total
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Wed Dec 27, 2006 5:03 pm    Post subject: Re: Sound not mixed Reply with quote

scriptX wrote:

Some apps can, however, mix audio perfectly. For example: Audacious (with ALSA output plugin) can play play music and I can do speaker-test or mpg321 simultaneously. But Cedega set to use ALSA (ctl device: hw, pcm device: hw (is this wrong?)) and Audacious can NOT play sound together.


I think you are making a mistake here. By routing an app's output to ALSA, you are bypassing arts or any other mixer (unless you set up dmix with ALSA), and as a result it occupies your card. I have no idea about the whole dmix business (never tried).

Try jack, it rocks. It does the mixing and in a very good manner (low latency etc...). But I know not every program has support for jack. But there is something like alsa-jack or jack-alsa, can't remember the exact package name. If I'm not mistaken it can route alsa output to jack.

The whole idea is routing ALL of different apps' sound output to a central mixer daemon. Then it will do the mixing and you should be able to hear many different apps at once... This mixer can be any of the ESounD, aRts, jack, dmix and maybe others. Once you give all the outputs to this mixer, THEN it will play the mixed sounds to ALSA. So I recommend you to check out this alsa-jack (whatever) thing and use jack as your main mixer. Hope this helps.
Back to top
View user's profile Send private message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Wed Dec 27, 2006 6:44 pm    Post subject: Reply with quote

Alright, I'm following http://gentoo-wiki.com/HOWTO_Jack right now.. updating world. But why does Audacious+mpg321 work without jack installed? Also, any idea why I'm getting those LD_PRELOAD errors?

EDIT: It's in alsa-plugins (with jack use flag set) now, not alsa-jack. Just FYI. :)
Back to top
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Wed Dec 27, 2006 8:19 pm    Post subject: Reply with quote

scriptX wrote:
Also, any idea why I'm getting those LD_PRELOAD errors?


do you have and special LD FLAGS set in your make.conf? If yes, remove them.
Back to top
View user's profile Send private message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Thu Dec 28, 2006 5:33 am    Post subject: Reply with quote

No.

make.conf
Code:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -pipe -march=athlon64 -msse3"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://open-systems.ufl.edu/mirrors/gentoo "
USE="mmx mmxext sse sse2 sse3 3dnow 3dnowext X alsa multilib nptl nptlonly threads zlib bzip2 offensive nvidia smp truetype jack -gnome -esd -arts"
PORTAGE_NICENESS="19"

INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia nv vga"
ALSA_CARDS="intel8x0"

PORTDIR_OVERLAY="/usr/local/portage"

# For Layman (used when installing Xgl)
source /usr/portage/local/layman/make.conf
Back to top
View user's profile Send private message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Mon Jan 08, 2007 7:54 am    Post subject: Reply with quote

Fixed.

http://gentoo-wiki.com/HOWTO_ALSA_Complete_%28includes_dmix%29#Problems_with_32-bit_dmix_on_AMD64

Code:
tyler@oreoblast ~ $ aoss32 opera
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.

And the sound is mixed, obviously.

I have no /etc/asound.conf or ~/.asoundrc. I have ALSA compiled into kernel.

Code:
oreoblast tyler # uname -a
Linux oreoblast 2.6.18 #3 SMP PREEMPT Thu Jan 4 01:30:20 CST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux


ALSA apps are set to use "default" as the output. (ie: Cedega defaults to using "hw"-- changed to "default")
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