[alsa-devel] SPDIF: How to play mono sound
Hi all, I have a pc with SPDIF out. I want to play audio file with single channel(mono) using aplay.
How to do that, when I try to play with following command, it gives error
aplay -Diec958:CARDICH6,DEV=0 mono_music.wav
it gives following error aplay: set_param:1065: Channels count not available.
Thanks and Regards, Ajay
Dne 8.11.2011 11:04, ajay khandelwal napsal(a):
Hi all, I have a pc with SPDIF out. I want to play audio file with single channel(mono) using aplay.
How to do that, when I try to play with following command, it gives error
aplay -Diec958:CARDICH6,DEV=0 mono_music.wav
it gives following error aplay: set_param:1065: Channels count not available.
How about
aplay -Dplug:iec958:CARDICH6,DEV=0 mono_music.wav
Spdif is a stereo device and does not accept a single channel stream. The plug plugin will do the conversion:
Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0 1 <- 0
Pavel.
Thanks Pavel, It worked, just little improvement it should be in quotes like this aplay -D"plug:'iec958:CARD=ICH6,DEV=0'" mono_music.wav Best Regards, Ajay On Tue, Nov 8, 2011 at 3:48 PM, Pavel Hofman pavel.hofman@ivitera.comwrote:
Dne 8.11.2011 11:04, ajay khandelwal napsal(a):
Hi all, I have a pc with SPDIF out. I want to play audio file with single channel(mono) using aplay.
How to do that, when I try to play with following command, it gives error
aplay -Diec958:CARDICH6,DEV=0 mono_music.wav
it gives following error aplay: set_param:1065: Channels count not available.
How about
aplay -Dplug:iec958:CARDICH6,DEV=0 mono_music.wav
Spdif is a stereo device and does not accept a single channel stream. The plug plugin will do the conversion:
Plug PCM: Route conversion PCM (sformat=S16_LE) Transformation table: 0 <- 0 1 <- 0
Pavel.
participants (2)
-
ajay khandelwal
-
Pavel Hofman