|
@@ -35,6 +35,9 @@ public:
|
|
double current_time() const { return m_current_time; }
|
|
double current_time() const { return m_current_time; }
|
|
Bindings::AudioContextState state() const { return m_control_thread_state; }
|
|
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*);
|
|
void set_onstatechange(WebIDL::CallbackType*);
|
|
WebIDL::CallbackType* onstatechange();
|
|
WebIDL::CallbackType* onstatechange();
|
|
|
|
|