We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17addf7 commit b5d2135Copy full SHA for b5d2135
examples/stream/stream.cpp
@@ -244,6 +244,11 @@ int main(int argc, char ** argv) {
244
245
if (!use_vad) {
246
while (true) {
247
+ // handle Ctrl + C
248
+ is_running = sdl_poll_events();
249
+ if (!is_running) {
250
+ break;
251
+ }
252
audio.get(params.step_ms, pcmf32_new);
253
254
if ((int) pcmf32_new.size() > 2*n_samples_step) {
0 commit comments