mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-11 16:43:11 +01:00
Fix TXTP mono mixing in some cases
This commit is contained in:
parent
cb9b9c0d61
commit
c7f2b53d45
@ -548,12 +548,13 @@ void mixing_push_killmix(VGMSTREAM* vgmstream, int ch_dst) {
|
|||||||
mix_command_data mix = {0};
|
mix_command_data mix = {0};
|
||||||
int ok;
|
int ok;
|
||||||
|
|
||||||
if (ch_dst <= 1) return; /* can't kill from 1 */
|
if (ch_dst <= 0) return; /* can't kill from first channel */
|
||||||
if (!data || ch_dst >= data->output_channels) return;
|
if (!data || ch_dst >= data->output_channels) return;
|
||||||
|
|
||||||
mix.command = MIX_KILLMIX;
|
mix.command = MIX_KILLMIX;
|
||||||
mix.ch_dst = ch_dst;
|
mix.ch_dst = ch_dst;
|
||||||
|
|
||||||
|
//;VGM_LOG("MIX: killmix %i\n", ch_dst);
|
||||||
ok = add_mixing(vgmstream, &mix);
|
ok = add_mixing(vgmstream, &mix);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
data->output_channels = ch_dst; /* clamp channels */
|
data->output_channels = ch_dst; /* clamp channels */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user