File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class MiniAudioConfig : public AudioInfo {
41
41
bool is_input = false ;
42
42
bool is_output = true ;
43
43
int delay_ms_if_buffer_full = MA_DELAY;
44
+ int buffer_size = MA_BUFFER_SIZE;
44
45
int buffer_count = MA_BUFFER_COUNT;
45
46
int buffer_start_count = MA_START_COUNT;
46
47
bool auto_restart_on_underrun = true ; // Automatically restart after buffer underrun
@@ -109,7 +110,7 @@ class MiniAudioStream : public AudioStream {
109
110
110
111
bool begin () override {
111
112
TRACEI ();
112
- setupBuffers ();
113
+ setupBuffers (config. buffer_size );
113
114
if (config.is_output && !config.is_input )
114
115
config_ma = ma_device_config_init (ma_device_type_playback);
115
116
else if (!config.is_output && config.is_input )
You can’t perform that action at this time.
0 commit comments