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:
Sebastien Leclerc
2019-06-05 17:41:46 -04:00
parent 4e26f5df36
commit 832180a4e4
14 changed files with 448 additions and 238 deletions

View File

@@ -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();