[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ALSA, aplay y alsaplayer



Hola:
De nuevo hablando de ALSA

Tengo configurado ALSA mediante el siguiente fichero /home/.asoundrc
===============.asoundrc===============
pcm.nforce-hw {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "nforce"
}

#0,0 is analog out (i.e. headphone socket on the shuttle), and 0,1 is 
#spdif out.

pcm.nforce {
type dmix
ipc_key 1234
slave {
pcm "hw:0,1"
period_time 0
period_size 1024
buffer_size 32768
rate 48000
}
}

ctl.nforce-hw {
type hw
card 0
}

#Everything else is as per the intel8xO sound card matrix.

#HINTS
#-----
#o) KDE
#By default KDE uses artsd to mix sounds, but since we are using the 
#dmix plugin this is no longer necessery. artsd holds the device in 
#such a way that it blocks any other programs from generating sound 
#output (unless they have an artsd plugin) which causes programs like 
#xmms, xine and even alsaplayer to just hang.

#With the above .asoundrc, you can go into KDE, load the control panel 
#and turn off artsd and all sounds will work fine.

#o) Noise / pops and interferance with aplay and KDE.
#I found that with this .asoundrc I was getting annoying pops and 
#spikes at the end of sound clips when played with aplay (KDE uses 
#aplay to play sound clips such as the login / logout wav files). The 
#problem appeared to be with the CVS alsa-utils. I de-installed those 
#and then installed older ones (I used emerge in Gentoo which I think
#loads version 9.2)
================================
En las páginas de ALSA, he encontrado un consejo para Debian y KDE, 
consistente en usar como sistema de sonido OSS con todos los hilos para 
obtener los sonidos de sistema.
Entonces deja de dar el mensaje de error inicial:
============
Sound server informational message:
Error while initializing the sound driver:
device /dev/dsp can't be opened (no such device) The sound server will
continue,using the null output device.
==========================
Pero sigue sin sonar nada. He probado aplicar un reproductor externo, como 
kaboodle, pero es una lata porque a cada sonido de sistema se abre la 
ventanita del kaboodle.
Supongo que KDE usará aplay por defecto, pero no funciona...:-(
Si en consola hago aplay, de da este resultado:

===================
josep@krro:~$ aplay
ALSA lib pcm_hw.c:1155:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: No 
such device
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
aplay: main:508: audio open error: No such device
josep@krro:~$
========================
Y si ejecuto alsaplayer, me da este mensaje:

============================
josep@krro:~$ alsaplayer
ALSA lib pcm_hw.c:1155:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: El 
dispositiu no és vàlid
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
snd_pcm_open: El dispositiu no és vàlid (default)
Failed to initialize plugin!
Failed to register plugin: /usr/lib/alsaplayer/output/libalsa_out.so
Failed to load output plugin "alsa". Trying defaults.
ALSA lib pcm_hw.c:1155:(snd_pcm_hw_open) open /dev/snd/pcmC0D1p failed: El 
dispositiu no és vàlid
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
snd_pcm_open: El dispositiu no és vàlid (default)
Failed to initialize plugin!
/usr/lib/alsaplayer/output/libalsa_out.so failed to load
NOTE: THIS IS THE NULL PLUGIN.      YOU WILL NOT HEAR SOUND!!
==========================================

¿Alguien entiende porqué ni aplay ni alsaplayer funcionan, cuando, por ejemplo 
sí puedo reproducir con sonido 5.1 cualquier película en dvd?
Gracias por la atención...
-- 

Salutacions,

Josep



Reply to: