Fix some trivial warnings

Building still has a lot of warnings, and some of these errors happened
to show up quite a bit. Fixing these warnings should help reduce that,
although there are still plenty to fix.

Signed-off-by: Avery King <gperson@disroot.org>
This commit is contained in:
Avery King
2025-06-29 07:40:09 -07:00
parent e7a22e8969
commit 219b0e8046
3 changed files with 4 additions and 4 deletions

View File

@@ -263,7 +263,7 @@ struct AUDIO_IO_API PlaybackSchedule {
///@brief Flag is set when used by at least consumer thread.
///Once node is not used by neither it's flag is cleared making it available
///for recycling.
std::atomic_flag active { ATOMIC_FLAG_INIT };
std::atomic_flag active = ATOMIC_FLAG_INIT;
///@brief Number of samples advanced from the beginning of the current head. Accessed only by consumer thread.
size_t offset { 0 };

View File

@@ -37,8 +37,8 @@ int GetFftSize(int sampleRate, bool formantPreservationOn)
// If needed some time in the future, we can decouple analysis window and
// FFT sizes by zero-padding, allowing for very fine-grained window duration
// without compromising performance.
return 1 << (formantPreservationOn ? 11 : 12) +
(int)std::round(std::log2(sampleRate / 44100.));
return 1 << ((formantPreservationOn ? 11 : 12) +
(int)std::round(std::log2(sampleRate / 44100.)));
}
std::unique_ptr<staffpad::TimeAndPitch> CreateTimeAndPitch(

View File

@@ -343,7 +343,7 @@ public:
void SetRate(int rate);
void SetRawAudioTempo(double tempo);
PitchAndSpeedPreset GetPitchAndSpeedPreset() const;
PitchAndSpeedPreset GetPitchAndSpeedPreset() const override;
//! Stretches from left to the absolute time (if in expected range)
void StretchLeftTo(double to);