Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Aug 15, 2023
1 parent 00d8dd7 commit 0e6eb2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Cardinal/src/AudioFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct CarlaInternalPluginModule : Module, Runner {
NativeTimeInfo fCarlaTimeInfo;

float dataOut[NUM_OUTPUTS+1][BUFFER_SIZE];
float* dataOutPtr[NUM_OUTPUTS];
float* dataOutPtr[NUM_OUTPUTS+1];
unsigned audioDataFill = 0;
uint32_t lastProcessCounter = 0;
bool fileChanged = false;
Expand All @@ -123,6 +123,7 @@ struct CarlaInternalPluginModule : Module, Runner {

dataOutPtr[0] = dataOut[0];
dataOutPtr[1] = dataOut[1];
dataOutPtr[2] = dataOut[2];

std::memset(dataOut, 0, sizeof(dataOut));
std::memset(&audioInfo, 0, sizeof(audioInfo));
Expand Down

0 comments on commit 0e6eb2a

Please sign in to comment.