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

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



> 
> Please try putting this into your ~/.asoundrc:
> 
> pcm.stereoonly { type hw card 0 channels 2 }
> 
> and then running "aplay -v -D plug:stereoonly
> /.../Front_Center.wav". Does it work?  Does it expand the file to
> two channels?
> 

I did so and could hear the sound out of the internal sound card and
there is no error message that the conversion into two channells did
not work:

aplay -v -D plug:stereoonly /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit
Little Endian, Rate 48000 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
0 <- 0
1 <- 0
Its setup is:
  stream   : PLAYBACK
  access   : RW_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 1
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min: 4096
  period_event : 0
  start_threshold  : 16384
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary : 1073741824
Slave: Hardware PCM card 0 'bcm2835 ALSA' device 0 subdevice 0
Its setup is:
  stream   : PLAYBACK
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 48000
  exact rate   : 48000 (48000/1)
  msbits   : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min: 4096
  period_event : 0
  start_threshold  : 16384
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary : 1073741824
  appl_ptr : 0
  hw_ptr   : 0


If I set it for the external sound card by changing "card 0" to "card 1"
 aplay -v -D plug:stereoonly /usr/share/sounds/alsa/Front_Center.wav
still gives the error

Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit
Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1297: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 50
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0

Kind regards,

Hauke
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlcWsVQACgkQjz8jfoq989ckEACdE4cZQyPb/RGyD1nvs8J118U/
IRoAn2AySIljwyO8pwDiEtrJRzZwsaOT
=8B9V
-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


Re: [Alsa-user] combine usb microphones (joop)

2016-04-19 Thread José Luis Artuch
In addition, if the microphones have identical sound cards, you can
identify them according to the USB port where they are connected using
udev rules:
http://alsa.opensrc.org/Udev
A working example:
http://zenbakaitz.servehttp.com
Regards,
José Luis


--
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-19 Thread Clemens Ladisch
Hauke Westemeier wrote:
>> "Front Right" is the name of the channel.  There could be other
>> channels such as "Side Right", "Back Right"; and the channel in
>> the front would be called "Center".
>
> So although the file is called Front_Right.wav aplay should play it on
> both of my channels the same signal at the same time (as it is mono
> and plughw sends it to both of my channels), correct?

Yes.

> Just for completeness, I tried
>   aplay -D plughw:0,0  /usr/share/sounds/alsa/Front_Left.wav
> and then I can hear the sound out of the internal sound card (as
> expected). So the aplay and the wav-file are not completely broken.

The internal sound device actually supports mono.


I don't know why the mono->stereo expansion does not work.  This should
be handled automatically by the plug plugin.  It would be possible to
explicitly disable this when compiling alsa-lib, but Debian does not do
this.


Please try putting this into your ~/.asoundrc:

  pcm.stereoonly {
  type hw
  card 0
  channels 2
  }

and then running "aplay -v -D plug:stereoonly /.../Front_Center.wav".
Does it work?  Does it expand the file to two channels?


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] combine usb microphones

2016-04-19 Thread Clemens Ladisch
Bas Hopmans wrote:
> what would i put in my .asoundrc?

Something like this:

pcm.fourchannels {
type plug
slave.pcm {
type multi
slaves {
a { pcm "hw:0" channels 1 }
b { pcm "hw:1" channels 1 }
c { pcm "hw:2" channels 1 }
d { pcm "hw:3" channels 1 }
}
bindings [
{ slave a channel 0 }
{ slave b channel 0 }
{ slave c channel 0 }
{ slave d channel 0 }
]
}
}


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