LibAudio: Make AudioLoaders return float instead of double

AudioBuffers already use floats internally so there is no need for
loaders to produces doubles
This commit is contained in:
2026-07-02 19:55:12 +03:00
parent 4473ee4d49
commit 0a8b03d349
3 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ namespace LibAudio
virtual uint32_t sample_rate() const = 0;
virtual uint32_t samples_remaining() const = 0;
virtual double get_sample() = 0;
virtual float get_sample() = 0;
protected:
AudioLoader() = default;

View File

@@ -24,7 +24,7 @@ namespace LibAudio
uint32_t sample_rate() const override { return m_sample_rate; }
uint32_t samples_remaining() const override { return m_total_samples - m_current_sample; }
double get_sample() override;
float get_sample() override;
private:
uint32_t m_channels { 0 };