diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-11-24 12:20:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-24 19:08:13 +0100 |
commit | f97c9a5968f35f2e365c1878991299e001fe3166 (patch) | |
tree | 0a6168e3e78e7973bc201a8ac6243f72d5886dce /Userland/Services/AudioServer/Mixer.h | |
parent | c349634967db2751e8ff40b2e6f07bef8b59179b (diff) | |
download | serenity-f97c9a5968f35f2e365c1878991299e001fe3166.zip |
Kernel: Allow higher audio sample rates than 65kHZ (`u16`)
Executing `asctl set r 96000` no longer results in weird sample rates
being set on the audio devices. SB16 checks for a sample rate between 1
and 44100 Hz, while AC97 implements double-rate support which allows
sample rates between 8kHz and 96kHZ.
Diffstat (limited to 'Userland/Services/AudioServer/Mixer.h')
-rw-r--r-- | Userland/Services/AudioServer/Mixer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/AudioServer/Mixer.h b/Userland/Services/AudioServer/Mixer.h index 0cd48c8500..9c64ab0eec 100644 --- a/Userland/Services/AudioServer/Mixer.h +++ b/Userland/Services/AudioServer/Mixer.h @@ -119,8 +119,8 @@ 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; + int audiodevice_set_sample_rate(u32 sample_rate); + u32 audiodevice_get_sample_rate() const; private: Mixer(NonnullRefPtr<Core::ConfigFile> config); |