Re: [Alsa-user] combine usb microphones

2016-04-15 Thread Ralf Mardorf
On Fri, 15 Apr 2016 13:52:28 + (UTC), joop wrote:
>Hi all,
>
>i have 4 usb microphones connected to my system that i would like to
>combine into one virtual 'sound card' with 4 seperate mic channels.
>
>i've researched this but could not find an answer...
>
>what would i put in my .asoundrc?

I don't know, but using 4 mics as one virtual sound card, without
sync, leads to nothing. Maybe this is useful:
http://kokkinizita.linuxaudio.org/linuxaudio/zita-ajbridge-doc/quickguide.html

I don't know, but you at least need some kind of hardware sync or
software resampling.


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] combine usb microphones

2016-04-15 Thread joop
Hi all,

i have 4 usb microphones connected to my system that i would like to combine 
into one virtual 'sound card' with 4 seperate mic channels.

i've researched this but could not find an answer...

what would i put in my .asoundrc?

arecord -l
 List of CAPTURE Hardware Devices 
card 0: device_1 [Usb Audio device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: device [Usb Audio device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: device_2 [Usb Audio device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: device_3 [Usb Audio device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

many thanks!
joop


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] speaker-test works but a aplay does not

2016-04-15 Thread Clemens Ladisch
Hauke Westemeier wrote:
> The differences to the values prompted in the error of
>  aplay  /usr/share/sounds/alsa/Front_Right.wav
> seem to be the number of channels and period_size and buffer_size.
> If I just run speaker test with one channel (default)
>  speaker-test  -t wav
> I also get a similar error like aplay:
> ...
> Unable to set hw params for playback: Invalid argument
>
> So the problem seems to be the number of channels. I therefore tried
> to also set it explicitly for aplay but
> aplay --channels=2 /usr/share/sounds/alsa/Front_Right.wav
> still didn't work and gave "CHANNELS: 1" in the error.

aplay always uses the actual format of the file.

The plughw plugin (which is also used by the default device)
automatically converts to a sample format that is (claimed to be)
actually supported by the hardware.

Try running this program:
http://download.atmark-techno.com/misc/demos/usb-audio-a500-howto/hw_params.c
Does it report one channel?


Regards,
Clemens

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] speaker-test works but a aplay does not

2016-04-15 Thread Hauke Westemeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The content of
 /proc/asound/card0/pcm0p/sub0/hw_params
is just "closed". This is as expected as the HifiBerry card is card1,
its parameters given in
 /proc/asound/card1/pcm0p/sub0/hw_params
are
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 32768
buffer_size: 131072

The differences to the values prompted in the error of
 aplay  /usr/share/sounds/alsa/Front_Right.wav
seem to be the number of channels and period_size and buffer_size.
If I just run speaker test with one channel (default)
 speaker-test  -t wav
I also get a similar error like aplay:

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 131072
Period size range from 8 to 65536
Using max buffer size 131072
Periods = 4
Unable to set hw params for playback: Invalid argument
Setting of hwparams failed: Invalid argument

So the problem seems to be the number of channels. I therefore tried
to also set it explicitly for aplay but
aplay --channels=2 /usr/share/sounds/alsa/Front_Right.wav
still didn't work and gave "CHANNELS: 1" in the error.

I hope that there is a way to fix it because it is a bit wired, that I
can play mp3 files etc but no simple wav files.

Kind regards,

Hauke
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlcQn3UACgkQjz8jfoq989c71ACfdBx0K73m/ftMuKy+sgM/733B
ijIAni5JGaQCWTxC4EUUQuu7rUboY94P
=Yq18
-END PGP SIGNATURE-

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user