Skip to content

Commit 06b4549

Browse files
Tweak AUDIO_OUTPUT_BUFFER_SIZE and document
1 parent 6042086 commit 06b4549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mpconfigport.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ extern uint32_t rng_generate_random_word(void);
128128
#define MICROPY_MAKE_POINTER_CALLABLE(p) \
129129
((mp_raise_NotImplementedError(MP_ERROR_TEXT("simulator limitation: asm_thumb code"))), p)
130130

131-
#define AUDIO_OUTPUT_BUFFER_SIZE (256) // this can be any value, defaults to 32 bytes
131+
// The latency of fetching 32 byte audio frames is too much so increase the size
132+
#define AUDIO_OUTPUT_BUFFER_SIZE (128)
132133

133134
#endif

0 commit comments

Comments
 (0)