Skip to content

Commit

Permalink
Fixed sidechain buffer cleanup issue when setting the same to the pre…
Browse files Browse the repository at this point in the history
…vious stereo mode
  • Loading branch information
sadko4u committed Sep 5, 2023
1 parent 83adafe commit b478c83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
=== 1.0.14 ===
* Fixed several issues reported by PVS Studio static analyzer.
* Fixed band characteristics report for FFTCrossover.
* Fixed sidechain buffer cleanup issue when setting the same to the previous stereo mode.

=== 1.0.13 ===
* Added insert() method to dspu::Sample class that allows to insert some zeroed
Expand Down
3 changes: 3 additions & 0 deletions src/main/util/Sidechain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ namespace lsp

void Sidechain::set_stereo_mode(sidechain_stereo_mode_t mode)
{
sidechain_stereo_mode_t old = (nFlags & SCF_MIDSIDE) ? SCSM_MIDSIDE : SCSM_STEREO;
if (old == mode)
return;
nFlags = lsp_setflag(nFlags, SCF_MIDSIDE, mode == SCSM_MIDSIDE);
nFlags |= SCF_CLEAR;
}
Expand Down

0 comments on commit b478c83

Please sign in to comment.