mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-30 21:01:00 +00:00 
			
		
		
		
	
		
			
	
	
		
			22 lines
		
	
	
	
		
			852 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
	
		
			852 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | #import <WebAudio/BaseAudioContext.idl> | ||
|  | 
 | ||
|  | // https://webaudio.github.io/web-audio-api/#OfflineAudioContextOptions | ||
|  | dictionary OfflineAudioContextOptions { | ||
|  |     unsigned long numberOfChannels = 1; | ||
|  |     required unsigned long length; | ||
|  |     required float sampleRate; | ||
|  |     // FIXME: (AudioContextRenderSizeCategory or unsigned long) renderSizeHint = "default"; | ||
|  | }; | ||
|  | 
 | ||
|  | // https://webaudio.github.io/web-audio-api/#OfflineAudioContext | ||
|  | [Exposed=Window] | ||
|  | interface OfflineAudioContext : BaseAudioContext { | ||
|  |     constructor(OfflineAudioContextOptions contextOptions); | ||
|  |     constructor(unsigned long numberOfChannels, unsigned long length, float sampleRate); | ||
|  |     Promise<AudioBuffer> startRendering(); | ||
|  |     Promise<undefined> resume(); | ||
|  |     Promise<undefined> suspend(double suspendTime); | ||
|  |     readonly attribute unsigned long length; | ||
|  |     attribute EventHandler oncomplete; | ||
|  | }; |