asoundrc ttable: integer only, no floating math?

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

 



Trying to reduce my left and right channels to 0.5, but am noticing ALSA is 
only reading values specified as floating as "0".  (Tried the old syntax as 
well.)

So ttable only see integer (INT) values for the third field now?  Either 0 or 1 
only?

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.

(The following ensure PCM 5.1 streams are streamed through HDMI to a 5.1 stereo 
receiver properly.  A profile is desired for PCM 5.1 music streams having weak 
center and rear channels.  So reduce left and right channels to 0.8 or further 
to 0.5, or half.)

File ${HOME}/.asounrc:
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
        }
}

OR

File ${HOME}/.asounrc:
pcm.myHDMIX {
        type route slave {
            pcm "hw:1,7"
            format S32_LE
            channels 6 }
            ttable.0.0 0.9;
            ttable.1.1 0.9;
            ttable.2.4 1;
            ttable.3.5 1;
            ttable.4.2 1;
            ttable.5.3 1;
}

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

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&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