[EMAIL PROTECTED] wrote:
> Quoting Udo van den Heuvel <[EMAIL PROTECTED]>:
>> Interesting theory.
>> How do I find out on what lines my audio comes in?
> 
> I think the theory is correct.
> 
> arecord -v
> aplay -v
> 
> report the transformation table ttable
> 
> for recording mono this seems to be default
> 
>    0 <- 0*0.0833333 + 1*0.0833333 + 2*0.0833333 + 3*0.0833333 +
> 4*0.0833333 + 5*0.0833333 + 6*0.0833333 + 7*0.0833333 + 8*0.0833333 +
> 9*0.0833333 + 10*0.0833333 + 11*0.0833333
> 
>  So this would explain why some people report quiet recordings!

Over here I see:

# arecord -v -Dplughw:1
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
Plug PCM: Route conversion PCM (sformat=S32_LE)
  Transformation table:
    0 <- 0*0.0833333 + 1*0.0833333 + 2*0.0833333 + 3*0.0833333 +
4*0.0833333 + 5*0.0833333 + 6*0.083333
                     3 + 7*0.0833333 + 8*0.0833333 + 9*0.0833333 +
10*0.0833333 + 11*0.0833333
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : U8
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 8
  buffer_size  : 4000
  period_size  : 1000
  period_time  : 125000
  tick_time    : 4000
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1000
  xfer_align   : 1000
  start_threshold  : 1
  stop_threshold   : 4000
  silence_threshold: 0
  silence_size : 0
  boundary     : 2097152000
Slave: Hardware PCM card 1 'M Audio Delta DiO 2496' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 12
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 24
  buffer_size  : 4000
  period_size  : 1000
  period_time  : 125000
  tick_time    : 4000
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1000
  xfer_align   : 1000
  start_threshold  : 1
  stop_threshold   : 4000
  silence_threshold: 0
  silence_size : 0
  boundary     : 2097152000
RIFF$WAVEfmt @data


> For stereo it records lines 0 and 1.
>
>  Transformation table:
>     0 <- 0
>     1 <- 1


So I need to change to 8/9

After that change it gives me:

# arecord -v -f cd -D dig   test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
Stereo
Plug PCM: Route conversion PCM (sformat=S32_LE)
  Transformation table:
    0 <- 8
    1 <- 9
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 5461
  period_size  : 1365
  period_time  : 30952
  tick_time    : 4000
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1365
  xfer_align   : 1365
  start_threshold  : 1
  stop_threshold   : 5461
  silence_threshold: 0
  silence_size : 0
  boundary     : 1431568384
Slave: Hardware PCM card 1 'M Audio Delta DiO 2496' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 12
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 24
  buffer_size  : 5461
  period_size  : 1365
  period_time  : 30952
  tick_time    : 4000
  tstamp_mode  : NONE
  period_step  : 1
  sleep_min    : 0
  avail_min    : 1365
  xfer_align   : 1365
  start_threshold  : 1
  stop_threshold   : 5461
  silence_threshold: 0
  silence_size : 0
  boundary     : 1431568384
(no RIFF....!!)

Aside from the RIFF stuff (there was no SPDIF signal active yet) it
looks a bit better.

Thanks!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to