1
Fork 0
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:
kleines Filmröllchen 2021-08-19 00:07:29 +02:00 committed by Ali Mohammad Pur
parent d0ceaa24a6
commit 9880a5c481
5 changed files with 38 additions and 0 deletions

View file

@ -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();