sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vector
This commit is contained in:
parent
87893e6d68
commit
0ef4185644
5 changed files with 9 additions and 9 deletions
|
@ -23,9 +23,10 @@ public:
|
|||
|
||||
/**
|
||||
* Feed stereo samples to sink.
|
||||
* @param samples Samples in interleaved stereo PCM16 format. Size of vector must be multiple of two.
|
||||
* @param samples Samples in interleaved stereo PCM16 format.
|
||||
* @param sample_count Number of samples.
|
||||
*/
|
||||
virtual void EnqueueSamples(const std::vector<s16>& samples) = 0;
|
||||
virtual void EnqueueSamples(const s16* samples, size_t sample_count) = 0;
|
||||
|
||||
/// Samples enqueued that have not been played yet.
|
||||
virtual std::size_t SamplesInQueue() const = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue