From cc4c01bb7d8dcaaa5bc8d9ad4bc7f913ee9424cb Mon Sep 17 00:00:00 2001 From: hgn Date: Wed, 8 Mar 2023 04:40:06 +0000 Subject: [PATCH] silly mistake --- vg_audio.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vg_audio.h b/vg_audio.h index a0d6b6b..8cccbd0 100644 --- a/vg_audio.h +++ b/vg_audio.h @@ -368,7 +368,7 @@ static void audio_channel_edit_volume( audio_channel *ch, { if( instant ) { - ch->editable_state.volume = 0.0f; + ch->editable_state.volume = new_volume; ch->editble_state_write_mask |= AUDIO_EDIT_VOLUME; } else @@ -792,8 +792,7 @@ static void audio_channel_mix( audio_channel *ch, float vol_norm = ch->_.volume * ch->_.volume; if( ch->_.lfo ) - vol_norm *= 1.0f + audio_lfo_pull_sample( ch->_.lfo ) - * ch->_.lfo_amount; + vol_norm *= 1.0f + audio_lfo_pull_sample(ch->_.lfo) * ch->_.lfo_amount; float vol_l = vol_norm * framevol_l, vol_r = vol_norm * framevol_r, -- 2.25.1