diff options
| author | 2016-08-31 16:55:10 +0100 | |
|---|---|---|
| committer | 2016-08-31 16:55:10 +0100 | |
| commit | 0ef4185644def3e7d99d88af3c8dd27d40660c82 (patch) | |
| tree | 0a6b8f018184ea30b5b8471520bd426b6de52b65 /src/audio_core/sink.h | |
| parent | Merge pull request #2034 from JayFoxRox/avoid-glsl-error (diff) | |
| download | yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.gz yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.xz yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.zip | |
sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vector
Diffstat (limited to 'src/audio_core/sink.h')
| -rw-r--r-- | src/audio_core/sink.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio_core/sink.h b/src/audio_core/sink.h index 1c881c3d2..a06fc3dcc 100644 --- a/src/audio_core/sink.h +++ b/src/audio_core/sink.h | |||
| @@ -23,9 +23,10 @@ public: | |||
| 23 | 23 | ||
| 24 | /** | 24 | /** |
| 25 | * Feed stereo samples to sink. | 25 | * Feed stereo samples to sink. |
| 26 | * @param samples Samples in interleaved stereo PCM16 format. Size of vector must be multiple of two. | 26 | * @param samples Samples in interleaved stereo PCM16 format. |
| 27 | * @param sample_count Number of samples. | ||
| 27 | */ | 28 | */ |
| 28 | virtual void EnqueueSamples(const std::vector<s16>& samples) = 0; | 29 | virtual void EnqueueSamples(const s16* samples, size_t sample_count) = 0; |
| 29 | 30 | ||
| 30 | /// Samples enqueued that have not been played yet. | 31 | /// Samples enqueued that have not been played yet. |
| 31 | virtual std::size_t SamplesInQueue() const = 0; | 32 | virtual std::size_t SamplesInQueue() const = 0; |