diff --git a/main.cpp b/main.cpp index 06b3425..bc74055 100644 --- a/main.cpp +++ b/main.cpp @@ -7,6 +7,7 @@ int main() { const int sample_rate = 48000; const float freq = 50.0f; float phase = 0.0f; + int duration = 1; PipeMini audio; @@ -25,8 +26,8 @@ int main() { return 1; } - printf("playing %f Hz sine for 5 seconds...\n", freq); - sleep(1); + printf("playing %f Hz sine for %d seconds...\n", freq, duration); + sleep(duration); return 0; } diff --git a/pipemini_demo b/pipemini_demo index ad4b467..45dc9cb 100755 Binary files a/pipemini_demo and b/pipemini_demo differ