Skip to content

Commit b0268c7

Browse files
committed
Minor: improved docs
1 parent 8f9f6ad commit b0268c7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/webaudio/audioworklet_in_out_mono.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ bool process(int numInputs, const AudioSampleFrame* inputs, int numOutputs, Audi
2929
// We can now do a quick mix since we know the layouts
3030
if (numInputs > 0) {
3131
int totalSamples = outputs[0].samplesPerChannel * outputs[0].numberOfChannels;
32-
// Simple copy of single input's audio data, checking that we have channels
33-
// (since a muted input has zero channels)
32+
// Simple copy of the first input's audio data, checking that we have
33+
// channels (since a muted input has zero channels).
3434
float* outputData = outputs[0].data;
3535
if (inputs[0].numberOfChannels > 0) {
3636
memcpy(outputData, inputs[0].data, totalSamples * sizeof(float));

test/webaudio/audioworklet_in_out_stereo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ bool process(int numInputs, const AudioSampleFrame* inputs, int numOutputs, Audi
2929
// We can now do a quick mix since we know the layouts
3030
if (numInputs > 0) {
3131
int totalSamples = outputs[0].samplesPerChannel * outputs[0].numberOfChannels;
32-
// Simple copy of single input's audio data, checking that we have channels
33-
// (since a muted input has zero channels)
32+
// Simple copy of the first input's audio data, checking that we have
33+
// channels (since a muted input has zero channels).
3434
float* outputData = outputs[0].data;
3535
if (inputs[0].numberOfChannels > 0) {
3636
memcpy(outputData, inputs[0].data, totalSamples * sizeof(float));

test/webaudio/audioworklet_params_mixing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ bool process(int numInputs, const AudioSampleFrame* inputs, int numOutputs, Audi
3838
// We can now do a quick mix since we know the layouts
3939
if (numInputs > 0) {
4040
int totalSamples = outSamplesPerChannel * outputs[0].numberOfChannels;
41-
// Simple copy of single input's audio data, checking that we have channels
42-
// (since a muted input has zero channels)
41+
// Simple copy of the first input's audio data, checking that we have
42+
// channels (since a muted input has zero channels).
4343
float* outputData = outputs[0].data;
4444
if (inputs[0].numberOfChannels > 0) {
4545
memcpy(outputData, inputs[0].data, totalSamples * sizeof(float));

0 commit comments

Comments
 (0)