From 6717c43fc234c100dfc9396354d8505cce4757e4 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sun, 16 Aug 2020 18:51:20 +0200 Subject: [PATCH] bruh --- src/audio.cpp | 1 + src/io/audio.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/audio.cpp b/src/audio.cpp index 9eb1e01c..de96637b 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -136,6 +136,7 @@ namespace audio { bstr.stereoStream = &bstr.m2s->output; astr->monoDynSplit->bind(bstr.monoStream); bstr.m2s->start(); + return bstr.stereoStream; } void setBlockSize(std::string name, int blockSize) { diff --git a/src/io/audio.h b/src/io/audio.h index c07eb5b4..172aec80 100644 --- a/src/io/audio.h +++ b/src/io/audio.h @@ -181,8 +181,11 @@ namespace io { if (!running) { return; } + spdlog::warn("==> Pa_StopStream"); Pa_StopStream(stream); + spdlog::warn("==> Pa_CloseStream"); Pa_CloseStream(stream); + spdlog::warn("==> Done"); running = false; }