|
@@ -7,8 +7,6 @@
|
|
|
#pragma once
|
|
|
|
|
|
#include "Mixer.h"
|
|
|
-#include <compare>
|
|
|
-
|
|
|
namespace AudioServer {
|
|
|
|
|
|
// This is in buffer counts.
|
|
@@ -52,16 +50,6 @@ public:
|
|
|
return m_old_value * (1 - m_current_fade) + m_new_value * (m_current_fade);
|
|
|
}
|
|
|
|
|
|
- auto operator<=>(FadingProperty<T> const& other) const
|
|
|
- {
|
|
|
- return static_cast<T>(this) <=> static_cast<T>(other);
|
|
|
- }
|
|
|
-
|
|
|
- auto operator<=>(T const& other) const
|
|
|
- {
|
|
|
- return static_cast<T>(*this) <=> other;
|
|
|
- }
|
|
|
-
|
|
|
void advance_time()
|
|
|
{
|
|
|
m_current_fade += 1.0 / static_cast<double>(m_fade_time);
|