Merge pull request 'minor changes' (#1) from Ailuriya/femtosynth:master into master

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-07-24 08:34:52 +00:00
2 changed files with 4 additions and 3 deletions
+4 -3
View File
@@ -5,8 +5,9 @@
int main() { int main() {
const int sample_rate = 48000; const int sample_rate = 48000;
const float freq = 440.0f; const float freq = 50.0f;
float phase = 0.0f; float phase = 0.0f;
int duration = 1;
PipeMini audio; PipeMini audio;
@@ -25,8 +26,8 @@ int main() {
return 1; return 1;
} }
printf("playing 440 Hz sine for 5 seconds...\n"); printf("playing %f Hz sine for %d seconds...\n", freq, duration);
sleep(5); sleep(duration);
return 0; return 0;
} }
BIN
View File
Binary file not shown.