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: system/include/emscripten/webaudio.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -103,19 +103,19 @@ typedef int EMSCRIPTEN_AUDIO_WORKLET_NODE_T;
103
103
104
104
typedefstructAudioSampleFrame
105
105
{
106
-
// Number of audio channels to process (multiplied by quantumSize gives the elements in data)
106
+
// Number of audio channels to process (multiplied by samplesPerChannel gives the elements in data)
107
107
constintnumberOfChannels;
108
108
// Number of samples per channel in data
109
-
constintquantumSize;
110
-
// An array of length numberOfChannels*quantumSize elements. Samples are always arranged in a planar fashion,
111
-
// where data[channelIndex*quantumSize+i] locates the data of the i'th sample of channel channelIndex.
109
+
constintsamplesPerChannel;
110
+
// An array of length numberOfChannels*samplesPerChannel elements. Samples are always arranged in a planar fashion,
111
+
// where data[channelIndex*samplesPerChannel+i] locates the data of the i'th sample of channel channelIndex.
112
112
float*data;
113
113
} AudioSampleFrame;
114
114
115
115
typedefstructAudioParamFrame
116
116
{
117
117
// Specifies the length of the input array data (in float elements). This will be guaranteed to either have
118
-
// a value of 1, for a parameter valid for the entire frame, or emscripten_audio_context_quantum_size() for a parameter that changes during the frame.
118
+
// a value of 1, for a parameter valid for the entire frame, or emscripten_audio_context_quantum_size() for a parameter that changes per sample during the frame.
0 commit comments