mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb: Add AudioContext.createMediaElementSource()
factory method
This commit is contained in:
parent
aa39aa50f7
commit
31532e36a8
Notes:
github-actions[bot]
2025-01-17 19:05:41 +00:00
Author: https://github.com/tcl3
Commit: 31532e36a8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3266
4 changed files with 18 additions and 5 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <LibWeb/Bindings/AudioContextPrototype.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
#include <LibWeb/WebAudio/BaseAudioContext.h>
|
||||
#include <LibWeb/WebAudio/MediaElementAudioSourceNode.h>
|
||||
|
||||
namespace Web::WebAudio {
|
||||
|
||||
|
@ -39,6 +40,8 @@ public:
|
|||
WebIDL::ExceptionOr<GC::Ref<WebIDL::Promise>> suspend();
|
||||
WebIDL::ExceptionOr<GC::Ref<WebIDL::Promise>> close();
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<MediaElementAudioSourceNode>> create_media_element_source(GC::Ptr<HTML::HTMLMediaElement>);
|
||||
|
||||
private:
|
||||
explicit AudioContext(JS::Realm& realm)
|
||||
: BaseAudioContext(realm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue