Skip to content

Commit 924a85f

Browse files
committed
Optimizations
1 parent 91652b9 commit 924a85f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples-desktop/generator/generator.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ StreamCopy copier(out, in); // copy in to out
1212
// Arduino Setup
1313
void setup(void) {
1414
Serial.begin(115200);
15-
AudioLogger::instance().begin(Serial, AudioLogger::Debug);
15+
AudioLogger::instance().begin(Serial, AudioLogger::Info);
1616

1717
// open output
1818
PortAudioConfig config = out.defaultConfig();

src/AudioConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define LED_BUILTIN 13 // pin number is specific to your esp32 board
3131
#endif
3232

33-
#define DEFAULT_BUFFER_SIZE 512
33+
#define DEFAULT_BUFFER_SIZE 1024
3434
#define DEFAULT_SAMPLE_RATE 44100
3535
#define DEFAULT_CHANNELS 2
3636
#define DEFAULT_BITS_PER_SAMPLE 16

src/AudioTools/SoundGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SoundGenerator {
4646

4747
/// Provides the data as byte array with the requested number of channels
4848
virtual size_t readBytes( uint8_t *buffer, size_t lengthBytes){
49-
LOGD("readBytes: %d - channesl = %d", lengthBytes);
49+
LOGD("readBytes: %d", lengthBytes);
5050
size_t result = 0;
5151
int ch = channels();
5252
int frame_size = sizeof(T) * ch;

0 commit comments

Comments
 (0)