1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

LibAudio: Use InputMemoryStream instead of BufferStream.

This commit is contained in:
asynts 2020-09-19 18:32:17 +02:00 committed by Andreas Kling
parent ae9f0e1cd8
commit fa43bf92e4
3 changed files with 12 additions and 21 deletions

View file

@ -108,7 +108,7 @@ private:
// A buffer of audio samples, normalized to 44100hz.
class Buffer : public RefCounted<Buffer> {
public:
static RefPtr<Buffer> from_pcm_data(ByteBuffer& data, ResampleHelper& resampler, int num_channels, int bits_per_sample);
static RefPtr<Buffer> from_pcm_data(ReadonlyBytes, ResampleHelper& resampler, int num_channels, int bits_per_sample);
static NonnullRefPtr<Buffer> create_with_samples(Vector<Sample>&& samples)
{
return adopt(*new Buffer(move(samples)));