Skip to content

Commit ea34785

Browse files
committed
Cosmetics
1 parent 9445c3e commit ea34785

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/yup_audio_basics/buffers/yup_FloatVectorOperations.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,8 @@ void YUP_CALLTYPE FloatVectorOperations::convertDoubleToFloat (float* dest, cons
20212021
FloatVectorHelpers::convertDoubleToFloat (dest, src, num);
20222022
}
20232023

2024+
//==============================================================================
2025+
20242026
double YUP_CALLTYPE FloatVectorOperations::computeCorrelation (const float* a, const float* b, int num) noexcept
20252027
{
20262028
return FloatVectorHelpers::computeCorrelation (a, b, num);

modules/yup_audio_formats/formats/yup_OpusAudioFormat.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ bool OpusAudioFormatWriter::write (const float* const* samplesToWrite, int numSa
734734
bool OpusAudioFormatWriter::encodeFrames (bool flushPending)
735735
{
736736
const size_t samplesPerFrame = (size_t) frameSize * (size_t) numChannelsInternal;
737+
std::vector<float> tempFrame;
737738

738739
while (true)
739740
{
@@ -745,8 +746,8 @@ bool OpusAudioFormatWriter::encodeFrames (bool flushPending)
745746
break;
746747

747748
const bool isLast = flushPending && available < samplesPerFrame;
748-
std::vector<float> tempFrame;
749749
const float* frameData = pendingInterleaved.data() + pendingOffset;
750+
tempFrame.clear();
750751

751752
if (isLast)
752753
{

0 commit comments

Comments
 (0)