mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
AudioServer: Expose the ability to get and set the sample rate
Two new IPC calls allow audio clients to get and set the sample rate. The AudioServer calls into the new ioctl of the sound card.
This commit is contained in:
parent
d0ceaa24a6
commit
9880a5c481
5 changed files with 38 additions and 0 deletions
|
@ -45,6 +45,8 @@ private:
|
|||
virtual Messages::AudioServer::GetPlayingBufferResponse get_playing_buffer() override;
|
||||
virtual Messages::AudioServer::GetMutedResponse get_muted() override;
|
||||
virtual void set_muted(bool) override;
|
||||
virtual void set_sample_rate(u16 sample_rate) override;
|
||||
virtual Messages::AudioServer::GetSampleRateResponse get_sample_rate() override;
|
||||
|
||||
Mixer& m_mixer;
|
||||
RefPtr<BufferQueue> m_queue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue