summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-17 17:26:33 +0100
committerGitHub <noreply@github.com>2019-02-17 17:26:33 +0100
commit2bb02a0b7896320e6fb7cef6792fa8faeb095091 (patch)
tree23a99542a3d1d0be7982b3dff9c355c3a8fc9cbb /src
parentMerge pull request #2133 from lioncash/arbiter (diff)
parentaudio_core/buffer: Make const and non-const getter for samples consistent (diff)
downloadyuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar.gz
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar.bz2
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar.lz
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar.xz
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.tar.zst
yuzu-2bb02a0b7896320e6fb7cef6792fa8faeb095091.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/buffer.h2
-rw-r--r--src/audio_core/stream.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/buffer.h b/src/audio_core/buffer.h
index a323b23ec..5ee09e9aa 100644
--- a/src/audio_core/buffer.h
+++ b/src/audio_core/buffer.h
@@ -21,7 +21,7 @@ public:
Buffer(Tag tag, std::vector<s16>&& samples) : tag{tag}, samples{std::move(samples)} {}
/// Returns the raw audio data for the buffer
- std::vector<s16>& Samples() {
+ std::vector<s16>& GetSamples() {
return samples;
}
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index d89ff30b7..4b66a6786 100644
--- a/src/audio_core/stream.cpp
+++ b/src/audio_core/stream.cpp
@@ -95,7 +95,7 @@ void Stream::PlayNextBuffer() {
active_buffer = queued_buffers.front();
queued_buffers.pop();
- VolumeAdjustSamples(active_buffer->Samples());
+ VolumeAdjustSamples(active_buffer->GetSamples());
sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples());