mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:02:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			633 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/WebAudio/BaseAudioContext.h>
 | |
| 
 | |
| namespace Web::WebAudio {
 | |
| 
 | |
| // https://webaudio.github.io/web-audio-api/#AudioContext
 | |
| class AudioContext final : public BaseAudioContext {
 | |
|     WEB_PLATFORM_OBJECT(AudioContext, BaseAudioContext);
 | |
| 
 | |
| public:
 | |
|     static WebIDL::ExceptionOr<JS::NonnullGCPtr<AudioContext>> construct_impl(JS::Realm&);
 | |
| 
 | |
|     virtual ~AudioContext() override;
 | |
| 
 | |
| private:
 | |
|     explicit AudioContext(JS::Realm&);
 | |
| 
 | |
|     virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
 | |
| };
 | |
| 
 | |
| }
 | 
