Re: [Alsa-user] asoundrc ttable: integer only, no floating math?
Brought to you by:
perex
From: Roger <rog...@gm...> - 2013-10-30 00:11:58
|
> 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/ |