mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
AudioServer: Added ability to get count of samples in the buffer queue
Now the AClientConnection can get the count of samples still in the buffer queue.
This commit is contained in:
parent
8bb919d1cc
commit
406aabff23
7 changed files with 28 additions and 0 deletions
|
@ -41,3 +41,8 @@ void AClientConnection::set_main_mix_volume(int volume)
|
|||
{
|
||||
send_sync<AudioServer::SetMainMixVolume>(volume);
|
||||
}
|
||||
|
||||
int AClientConnection::get_remaining_samples()
|
||||
{
|
||||
return send_sync<AudioServer::GetRemainingSamples>()->remaining_samples();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue