forked from Annika/femtosynth
change to output
This commit is contained in:
@@ -7,6 +7,7 @@ int main() {
|
|||||||
const int sample_rate = 48000;
|
const int sample_rate = 48000;
|
||||||
const float freq = 50.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 %f Hz sine for 5 seconds...\n", freq);
|
printf("playing %f Hz sine for %d seconds...\n", freq, duration);
|
||||||
sleep(1);
|
sleep(duration);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user