mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
Audio: Make ABuffer sit on top of a SharedBuffer.
This allows us to carry the same buffer all the way from the WAV loader to the AudioServer mixer. This alleviates some of the stutter, but there's still a noticeable skip when switching buffers. We're gonna need to do better. :^)
This commit is contained in:
parent
b805f112c2
commit
5e01dde7b1
6 changed files with 38 additions and 31 deletions
|
@ -254,5 +254,5 @@ RefPtr<ABuffer> ABuffer::from_pcm_data(ByteBuffer& data, int num_channels, int b
|
|||
// don't belong.
|
||||
ASSERT(!stream.handle_read_failure());
|
||||
|
||||
return adopt(*new ABuffer(move(fdata)));
|
||||
return ABuffer::create_with_samples(move(fdata));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue