Re: asoundrc ttable: integer only, no floating math?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Tue, Oct 29, 2013 at 08:01:35AM +0100, Clemens Ladisch wrote:
>Roger wrote:
>> On Mon, Oct 28, 2013 at 12:53:34PM +0100, Clemens Ladisch wrote:
>>> Roger wrote:
>>>> Trying to reduce my left and right channels to 0.5, but am noticing ALSA is
>>>> only reading values specified as floating as "0".
>>>>
>>>> The below should reduce the volume slightly on channels left (0) and right (0),
>>>> but it's obvious I'm getting the channel set to zero (0) or off.
>>>>
>>>> pcm.myHDMI {
>>>>         type route slave {
>>>>             pcm "hw:1,7"
>>>>             format S32_LE
>>>>             channels 6 }
>>>>         ttable {
>>>>             0.0= 0.9
>>>>             1.1= 0.9
>>>>             2.4= 1
>>>>             3.5= 1
>>>>             4.2= 1
>>>>             5.3= 1
>>>>         }
>>>> }
>>>
>>> The ttable entries are floating-point numbers, except when alsa-lib was
>>> configured --with-softfloat.
>>
>> configure:12281: checking for softfloat
>> configure:12299: result: no
>
>What is the output of "aplay -v -D myHDMI something.wav"?


$ aplay-hdmi -v -D myHDMIX Music/Mozart/Essential_Mozart-1/01._Allegro_\(from_Eine_kleine_Nachtmusik\,_K525\).wav 
Playing WAVE 'Music/Mozart/Essential_Mozart-1/01._Allegro_(from_Eine_kleine_Nachtmusik,_K525).wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Route conversion PCM (sformat=S32_LE)
  Transformation table:
    0 <- 0*0.9
    1 <- 1*0.9
    2 <- 4
    3 <- 5
    4 <- 2
    5 <- 3
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 22080
  period_size  : 5520
  period_time  : 125170
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 5520
  period_event : 0
  start_threshold  : 22080
  stop_threshold   : 22080
  silence_threshold: 0
  silence_size : 0
  boundary     : 6214967485771284480
Slave: Hardware PCM card 1 'HDA NVidia' device 7 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 6
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 32
  buffer_size  : 22080
  period_size  : 5520
  period_time  : 125170
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 5520
  period_event : 0
  start_threshold  : 22080
  stop_threshold   : 22080
  silence_threshold: 0
  silence_size : 0
  boundary     : 6214967485771284480
  appl_ptr     : 0
  hw_ptr       : 0


-- 
Roger
http://rogerx.freeshell.org/

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux