mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +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
|
@ -24,7 +24,7 @@ int main(int argc, char **argv)
|
|||
if (!samples) {
|
||||
break;
|
||||
}
|
||||
printf("Playing %d sample(s)\n", samples->samples().size());
|
||||
printf("Playing %d sample(s)\n", samples->sample_count());
|
||||
a_conn.play(*samples, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue