mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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
|
@ -106,6 +106,9 @@ public:
|
|||
bool is_muted() const { return m_muted; }
|
||||
void set_muted(bool);
|
||||
|
||||
int audiodevice_set_sample_rate(u16 sample_rate);
|
||||
u16 audiodevice_get_sample_rate() const;
|
||||
|
||||
private:
|
||||
void request_setting_sync();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue