Skip to content

Commit

Permalink
Mix-and-Render resets the track gain
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Nov 13, 2023
1 parent 30cc55b commit ae99292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/lib-effects/MixAndRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ TrackListHolder MixAndRender(const TrackIterRange<const WaveTrack> &trackRange,
auto result = trackFactory->Create(mono ? 1 : 2, *first);
auto mix = static_cast<WaveTrack*>(*result->begin());
mix->SetPan(0);
mix->SetGain(1.0f);
mix->SetRate(rate);
mix->ConvertToSampleFormat(format);
if(!oneinput)
Expand Down

0 comments on commit ae99292

Please sign in to comment.