b-fitzpatrick / cpiped

Captures an audio stream and outputs to a pipe with buffering and silence detection
GNU General Public License v3.0
71 stars 13 forks source link

Use card via card number #6

Open maweki opened 6 years ago

maweki commented 6 years ago

Somehow on my setup I can't use the name of cards. When I want to use alsamixer I have to use alsamixer -c 1. None of the names that aplay -l gives me are "accepted" by cpiped.

I always get

Starting up.
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM Device
Unable to open pcm device: No such file or directory

If there was a way to use the card number that would be great.

b-fitzpatrick commented 6 years ago

I don't currently have a machine with ALSA installed to test, but try setting up an alias in asound.conf.

http://www.alsa-project.org/main/index.php/Asoundrc

mixographer commented 2 years ago

I have this same problem.5 years on. I think it's just that any way to refer to sound cards is beyond me.

mixographer commented 2 years ago

I always get this:

cpiped: malloc.c:2401: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

When I try to call my card "hw:1,0" which I think is what it is called.