[pulseaudio-tickets] [PulseAudio] #934: downmix to mono makes audio cliffing.
PulseAudio
trac-noreply at tango.0pointer.de
Wed Apr 20 23:38:46 PDT 2011
#934: downmix to mono makes audio cliffing.
-----------------------+----------------------------------------------------
Reporter: kwanghui | Owner: lennart
Type: defect | Status: new
Milestone: 0.9.23 | Component: daemon
Resolution: | Keywords: remap
-----------------------+----------------------------------------------------
Comment(by kwanghui):
Oops. rewrite code
{{{
- if (a == b || a == PA_CHANNEL_POSITION_MONO || b ==
PA_CHANNEL_POSITION_MONO) {
+ if (a == b || a == PA_CHANNEL_POSITION_MONO) {
m->map_table_f[oc][ic] = 1.0;
oc_connected = TRUE;
ic_connected[ic] = TRUE;
}
+ else if (b == PA_CHANNEL_POSITION_MONO) {
+ if(n_ic)
+ m->map_table_f[oc][ic] = 1.0f / (float) n_ic;
+
+ oc_connected = TRUE;
+ ic_connected[ic] = TRUE;
+ }
}}}
--
Ticket URL: <http://pulseaudio.org/ticket/934#comment:1>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list