projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b3420d
)
silly mistake
author
hgn
<hgodden00@gmail.com>
Wed, 8 Mar 2023 04:40:06 +0000
(
04:40
+0000)
committer
hgn
<hgodden00@gmail.com>
Wed, 8 Mar 2023 04:40:06 +0000
(
04:40
+0000)
vg_audio.h
patch
|
blob
|
history
diff --git
a/vg_audio.h
b/vg_audio.h
index a0d6b6b2beafc26912c6700a324c2e8581bd95ad..8cccbd06a6515efff20850df5d8faddc90eea59e 100644
(file)
--- 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,