You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/source/docs/tools_reference/emcc.rst
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,15 +262,14 @@ Options that are modified or new in *emcc* are listed below:
262
262
[link]
263
263
Runs the :term:`Closure Compiler`. Possible values are:
264
264
265
-
- ``0``: No closure compiler (default in ``-O2`` and below).
265
+
- ``0``: No closure compiler (default).
266
266
- ``1``: Run closure compiler. This greatly reduces the size of the support JavaScript code (everything but the WebAssembly or asm.js). Note that this increases compile time significantly.
267
267
- ``2``: Run closure compiler on *all* the emitted code, even on **asm.js** output in **asm.js** mode. This can further reduce code size, but does prevent a significant amount of **asm.js** optimizations, so it is not recommended unless you want to reduce code size at all costs.
268
268
269
269
.. note::
270
270
271
271
- Consider using ``-sMODULARIZE`` when using closure, as it minifies globals to names that might conflict with others in the global scope. ``MODULARIZE`` puts all the output into a function (see ``src/settings.js``).
272
272
- Closure will minify the name of `Module` itself, by default! Using ``MODULARIZE`` will solve that as well. Another solution is to make sure a global variable called `Module` already exists before the closure-compiled code runs, because then it will reuse that variable.
273
-
- Closure is only run if JavaScript opts are being done (``-O2`` or above).
// Create Wasm AudioWorklet thread. Call this function once at application startup to establish an AudioWorkletGlobalScope for your app.
63
63
// After the scope has been initialized, the given callback will fire.
64
64
// audioContext: The Web Audio context object to initialize the Wasm AudioWorklet thread on. Each AudioContext can have only one AudioWorklet
65
-
// thread running, so do not call this function a multiple times on the same AudioContext.
65
+
// thread running, so do not call this function multiple times on the same AudioContext.
66
66
// stackLowestAddress: The base address for the thread's stack. Must be aligned to 16 bytes. Use e.g. memalign(16, 1024) to allocate a 1KB stack for the thread.
67
67
// stackSize: The size of the thread's stack. Must be a multiple of 16 bytes.
68
68
// callback: The callback function that will be run when thread creation either succeeds or fails.
@@ -76,8 +76,8 @@ typedef int WEBAUDIO_PARAM_AUTOMATION_RATE;
76
76
typedefstructWebAudioParamDescriptor
77
77
{
78
78
floatdefaultValue; // Default == 0.0
79
-
floatminValue; // Default = -3.4028235e38;
80
-
floatmaxValue; // Default = 3.4028235e38;
79
+
floatminValue; // Default = -3.4028235e38
80
+
floatmaxValue; // Default = 3.4028235e38
81
81
WEBAUDIO_PARAM_AUTOMATION_RATEautomationRate; // Either WEBAUDIO_PARAM_A_RATE or WEBAUDIO_PARAM_K_RATE. Default = WEBAUDIO_PARAM_A_RATE
// Returns the number of samples processed per channel in an AudioSampleFrame, fixed at 128 in the Web Audio API 1.0 specification, and valid for the lifetime of the audio context.
99
-
// For this to change from the default 128, the context would need creating with a yet unexposed WebAudioWorkletProcessorCreateOptions renderSizeHint, part of the 1.1 Web Audio API.
99
+
// For this to change from the default 128, the context would need to be created with a yet unexposed WebAudioWorkletProcessorCreateOptions renderSizeHint, part of the 1.1 Web Audio API.
0 commit comments