mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
ABuffer: move it and groove it
This commit is contained in:
parent
2df6f0e87f
commit
ed25d524f2
3 changed files with 4 additions and 4 deletions
|
@ -53,8 +53,8 @@ struct ASample {
|
|||
class ABuffer : public RefCounted<ABuffer> {
|
||||
public:
|
||||
static RefPtr<ABuffer> from_pcm_data(ByteBuffer& data, int num_channels, int bits_per_sample, int source_rate);
|
||||
ABuffer(Vector<ASample>& samples)
|
||||
: m_samples(samples)
|
||||
ABuffer(Vector<ASample>&& samples)
|
||||
: m_samples(move(samples))
|
||||
{}
|
||||
|
||||
const Vector<ASample>& samples() const { return m_samples; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue