mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:27:45 +00:00
LibAudio: Use InputMemoryStream instead of BufferStream.
This commit is contained in:
parent
ae9f0e1cd8
commit
fa43bf92e4
3 changed files with 12 additions and 21 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue