mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Add BaseAudioContext::nyquist_frequency helper function
As a convenient shorthand :^)
This commit is contained in:
parent
099c9e4a7e
commit
303958a803
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/shannonbooth
Commit: 303958a803
Pull-request: https://github.com/SerenityOS/serenity/pull/24195
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ public:
|
|||
double current_time() const { return m_current_time; }
|
||||
Bindings::AudioContextState state() const { return m_control_thread_state; }
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#--nyquist-frequency
|
||||
float nyquist_frequency() const { return m_sample_rate / 2; }
|
||||
|
||||
void set_onstatechange(WebIDL::CallbackType*);
|
||||
WebIDL::CallbackType* onstatechange();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue