mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
Ring buffer implementation
First stab at implementing a ring buffer. Now tuning should be done. The statistics report causes jitters and can be deactivated by lowering the output verbosity.
This commit is contained in:
@@ -525,7 +525,7 @@ int main(int argc, char **argv) {
|
||||
pidfile = optarg;
|
||||
break;
|
||||
#endif
|
||||
#if !DACAUDIO && !BTAUDIO
|
||||
#if !CONFIG_DACAUDIO && !CONFIG_BTAUDIO
|
||||
case 'l':
|
||||
list_devices();
|
||||
exit(0);
|
||||
@@ -749,9 +749,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
stream_init(log_stream, stream_buf_size);
|
||||
|
||||
#if BTAUDIO
|
||||
#if CONFIG_BTAUDIO
|
||||
output_init_bt(log_output, output_device, output_buf_size, output_params, rates, rate_delay, idle);
|
||||
#elif DACAUDIO
|
||||
#elif CONFIG_DACAUDIO
|
||||
output_init_dac(log_output, output_device, output_buf_size, output_params, rates, rate_delay, idle);
|
||||
#else
|
||||
if (!strcmp(output_device, "-")) {
|
||||
@@ -801,7 +801,7 @@ int main(int argc, char **argv) {
|
||||
decode_close();
|
||||
stream_close();
|
||||
|
||||
#if DACAUDIO
|
||||
#if CONFIG_DACAUDIO
|
||||
output_close_dac();
|
||||
#elif BTAUDIO
|
||||
output_close_bt();
|
||||
|
||||
Reference in New Issue
Block a user