mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:28:13 +00:00
AudioServer: Add a buffer queue so we can buffer some sound.
The idea here is to keep a small number of sample buffers queued in the AudioServer so we don't get caught without something to play.
This commit is contained in:
parent
7f82e86fb8
commit
7cabe6433e
6 changed files with 61 additions and 1 deletions
|
@ -25,7 +25,7 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
}
|
||||
printf("Playing %d sample(s)\n", samples->sample_count());
|
||||
a_conn.play(*samples, true);
|
||||
a_conn.enqueue(*samples);
|
||||
}
|
||||
|
||||
printf("Exiting! :)\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue