Skip to content

Commit

Permalink
[quadpan] Fix if no input
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jun 17, 2024
1 parent d149fc5 commit ad0bd45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/Advanced/Utilities/QuadPan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class QuadPan
void operator()(const int frames)
{
const auto in = inputs.audio.channel(0, frames);
if(in.empty())
return;

const auto g = inputs.gain.value;

auto fl = outputs.fl.channel(0, frames);
Expand Down

0 comments on commit ad0bd45

Please sign in to comment.