From 600e4bbeac6430f27356e32d2905feb0d98fdd66 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 4 Aug 2018 00:03:12 -0400 Subject: audio_core: Use s16 where possible for audio samples. --- src/audio_core/buffer.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/audio_core/buffer.h') diff --git a/src/audio_core/buffer.h b/src/audio_core/buffer.h index 4bf5fd58a7..a323b23ec9 100644 --- a/src/audio_core/buffer.h +++ b/src/audio_core/buffer.h @@ -18,11 +18,16 @@ class Buffer { public: using Tag = u64; - Buffer(Tag tag, std::vector&& data) : tag{tag}, data{std::move(data)} {} + Buffer(Tag tag, std::vector&& samples) : tag{tag}, samples{std::move(samples)} {} /// Returns the raw audio data for the buffer - const std::vector& GetData() const { - return data; + std::vector& Samples() { + return samples; + } + + /// Returns the raw audio data for the buffer + const std::vector& GetSamples() const { + return samples; } /// Returns the buffer tag, this is provided by the game to the audout service @@ -32,7 +37,7 @@ public: private: Tag tag; - std::vector data; + std::vector samples; }; using BufferPtr = std::shared_ptr; -- cgit v1.2.3