Comment corrections, no code change

pull/13/head
boblark 3 years ago
parent a27123ec64
commit 686fceb41c
  1. 9
      output_i2s_f32.cpp

@ -658,6 +658,10 @@ void AudioOutputI2S_F32::update(void)
//Serial.print("AudioOutputI2S_F32: audio_block_samples = ");
//Serial.println(audio_block_samples);
// Optional scaling for easy volume control. Leave outputScale==1.0f for default
if(outputScale<1.0f || outputScale>1.0f)
arm_scale_f32 (block_f32->data, outputScale, block_f32->data, block_f32->length);
//scale F32 to Int32
//block_f32_scaled = AudioStream_F32::allocate_f32();
//scale_f32_to_i32(block_f32->data, block_f32_scaled->data, audio_block_samples);
@ -696,8 +700,13 @@ void AudioOutputI2S_F32::update(void)
}
block_f32_scaled = block2_f32_scaled; //this is simply renaming the pre-allocated buffer
block_f32 = receiveReadOnly_f32(1); // input 1 = right channel
if (block_f32) {
// Optional scaling for easy volume control. Leave outputScale==1.0f for default
if(outputScale<1.0f || outputScale>1.0f)
arm_scale_f32 (block_f32->data, outputScale, block_f32->data, block_f32->length);
//scale F32 to Int32
//block_f32_scaled = AudioStream_F32::allocate_f32();
//scale_f32_to_i32(block_f32->data, block_f32_scaled->data, audio_block_samples);

Loading…
Cancel
Save