Skip to content

Commit bd5d653

Browse files
committed
Fixed the param offsets being totally wrong
1 parent 4e1af38 commit bd5d653

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib/libwebaudio.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,12 @@ let LibraryWebAudio = {
255255
while (numAudioParams--) {
256256
audioParams.push({
257257
name: i++,
258-
defaultValue: {{{ makeGetValue('audioParamDescriptors++', C_STRUCTS.WebAudioParamDescriptor.defaultValue, 'float') }}},
259-
minValue: {{{ makeGetValue('audioParamDescriptors++', C_STRUCTS.WebAudioParamDescriptor.minValue, 'float') }}},
260-
maxValue: {{{ makeGetValue('audioParamDescriptors++', C_STRUCTS.WebAudioParamDescriptor.maxValue, 'float') }}},
261-
automationRate: ({{{ makeGetValue('audioParamDescriptors++', C_STRUCTS.WebAudioParamDescriptor.maxValue, 'i32') }}} ? 'a' : 'k') + '-rate'
258+
defaultValue: {{{ makeGetValue('audioParamDescriptors', C_STRUCTS.WebAudioParamDescriptor.defaultValue, 'float') }}},
259+
minValue: {{{ makeGetValue('audioParamDescriptors', C_STRUCTS.WebAudioParamDescriptor.minValue, 'float') }}},
260+
maxValue: {{{ makeGetValue('audioParamDescriptors', C_STRUCTS.WebAudioParamDescriptor.maxValue, 'float') }}},
261+
automationRate: ({{{ makeGetValue('audioParamDescriptors', C_STRUCTS.WebAudioParamDescriptor.automationRate, 'i32') }}} ? 'k' : 'a') + '-rate'
262262
});
263+
audioParamDescriptors += {{{ C_STRUCTS.WebAudioParamDescriptor.__size__ }}};
263264
}
264265

265266
#if WEBAUDIO_DEBUG

0 commit comments

Comments
 (0)