mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
Userspace: Add missing #includes now that AK/StdLibExtras.h is smaller
This commit is contained in:
parent
35d88f536c
commit
37fc6c117c
44 changed files with 67 additions and 25 deletions
|
@ -27,9 +27,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/SharedBuffer.h>
|
||||
#include <AK/Types.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/SharedBuffer.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace Audio {
|
||||
|
||||
|
@ -126,15 +127,15 @@ public:
|
|||
|
||||
private:
|
||||
explicit Buffer(Vector<Sample>&& samples)
|
||||
: m_buffer(*SharedBuffer::create_with_size(samples.size() * sizeof(Sample))),
|
||||
m_sample_count(samples.size())
|
||||
: m_buffer(*SharedBuffer::create_with_size(samples.size() * sizeof(Sample)))
|
||||
, m_sample_count(samples.size())
|
||||
{
|
||||
memcpy(m_buffer->data(), samples.data(), samples.size() * sizeof(Sample));
|
||||
}
|
||||
|
||||
explicit Buffer(NonnullRefPtr<SharedBuffer>&& buffer, int sample_count)
|
||||
: m_buffer(move(buffer)),
|
||||
m_sample_count(sample_count)
|
||||
: m_buffer(move(buffer))
|
||||
, m_sample_count(sample_count)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue