mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	[HTML5] AudioWorkletAPI implementation.
Rewrote AudioDriverJavaScript to support multiple processor nodes. The old (and deprecated) ScriptProcessorNode when threads are not available, and the new AudioWorklet API when threads are enabled. The new implementation uses two ring buffers and a shared state to communicated with the AudioWorklet thread. The audio.worklet.js JavaScript file is always added to the export template, but only really used (and download) in the thread build.
This commit is contained in:
		
							parent
							
								
									e52ed6d89e
								
							
						
					
					
						commit
						6d939b72f0
					
				
					 8 changed files with 722 additions and 220 deletions
				
			
		|  | @ -4,6 +4,8 @@ var Utils = { | |||
| 		function rw(path) { | ||||
| 			if (path.endsWith('.worker.js')) { | ||||
| 				return execName + '.worker.js'; | ||||
| 			} else if (path.endsWith('.audio.worklet.js')) { | ||||
| 				return execName + '.audio.worklet.js'; | ||||
| 			} else if (path.endsWith('.js')) { | ||||
| 				return execName + '.js'; | ||||
| 			} else if (path.endsWith('.wasm')) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fabio Alessandrelli
						Fabio Alessandrelli