Skip to content

Commit 79c456d

Browse files
committed
Removed unneeded I16 memory. Thanks, Greg
1 parent 4e173a1 commit 79c456d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

examples/AudioOutputI2SQuad_F32_Example/AudioOutputI2SQuad_F32_Example.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Demonstration of AudioOutputI2SQuad_F32 four channel I2S output object.
2-
// Greg Raven KF5N October 2025.
2+
// Greg Raven KF5N November 2025.
33
// The first left and right channels are output on pin 7, which drives the
44
// Teensy Audio Adapter (Teensy 4.1). The second left and right channels are output on pin 32 (Teensy 4.1).
55

@@ -8,7 +8,7 @@
88
#include <OpenAudio_ArduinoLibrary.h>
99
#include <AudioStream_F32.h>
1010

11-
const float sample_rate_Hz = 48000.0;
11+
const int sample_rate_Hz = 48000;
1212
const int audio_block_samples = 128; // Always 128
1313

1414
AudioControlSGTL5000 sgtl5000_1;
@@ -30,13 +30,14 @@ void setup() {
3030
Serial.print(CrashReport);
3131
}
3232

33+
/* DMA debug code.
3334
uint32_t* dmaErrors;
3435
dmaErrors = (uint32_t*)(0x400E8000 + 0x4);
3536
Serial.printf("DMA errors = %u\n", *dmaErrors);
37+
*/
3638

3739
sgtl5000_1.enable();
3840
sgtl5000_1.setAddress(LOW);
39-
AudioMemory(10);
4041
AudioMemory_F32(10);
4142
sgtl5000_1.volume(0.8); // Set headphone volume.
4243
sgtl5000_1.unmuteHeadphone();

0 commit comments

Comments
 (0)