audio_core/buffer: Make const and non-const getter for samples consistent

This way proper const/non-const selection can occur.
This commit is contained in:
Lioncash 2019-02-16 15:21:32 -05:00
parent 8d25a51b64
commit bce7a71232
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}