mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-25 16:00:35 +02:00
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:
@@ -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 };
|
||||
|
@@ -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(
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user