Skip to content

Commit 1af27ca

Browse files
committed
Pass 'renderQuantumSize' through Closure
1 parent c013e88 commit 1af27ca

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/libwebaudio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var LibraryWebAudio = {
7777

7878
// Performs the work of getting the AudioContext's render quantum size.
7979
$emscriptenGetContextQuantumSize: (contextHandle) => {
80-
return EmAudio[contextHandle].renderQuantumSize || 128;
80+
return EmAudio[contextHandle]['renderQuantumSize'] || 128;
8181
},
8282

8383
// emscripten_create_audio_context() does not itself use the

test/codesize/audio_worklet_wasm.expected.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var K = [], L = a => {
134134
a = {
135135
latencyHint: c,
136136
sampleRate: G[a + 4 >> 2] || void 0,
137-
O: 0 == b ? "default" : 0 > b ? "hardware" : b
137+
N: 0 == b ? "default" : 0 > b ? "hardware" : b
138138
};
139139
} else a = void 0;
140140
a = new AudioContext(a);
@@ -159,7 +159,7 @@ var K = [], L = a => {
159159
processorOptions: {
160160
v: h,
161161
A: d,
162-
u: O[a].N || 128
162+
u: O[a].renderQuantumSize || 128
163163
}
164164
};
165165
} else b = void 0;
@@ -204,7 +204,7 @@ var K = [], L = a => {
204204
});
205205
e.port.postMessage({
206206
_boot: 1,
207-
P: ba++,
207+
O: ba++,
208208
G: m.wasm,
209209
L: w,
210210
J: c,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 519,
33
"a.html.gz": 357,
4-
"a.js": 4297,
5-
"a.js.gz": 2208,
4+
"a.js": 4313,
5+
"a.js.gz": 2222,
66
"a.wasm": 1329,
77
"a.wasm.gz": 895,
8-
"total": 6145,
9-
"total_gz": 3460
8+
"total": 6161,
9+
"total_gz": 3474
1010
}

0 commit comments

Comments
 (0)