небольшое обновление

This commit is contained in:
2026-11-12 20:58:48 +06:00
parent 87e59c84e5
commit c7a3be8e4a
2 changed files with 9 additions and 4 deletions
+8 -3
View File
@@ -7,6 +7,7 @@
int main(){
std::cout << "110.гц\n";
std::string a = "";
Synth synth;
synth.set_frequency(110);
synth.set_amplitude(0.5);
@@ -15,9 +16,13 @@ int main(){
try{
AudioEngine audio_engine(synth);
audio_engine.start();
std::cin.get();
audio_engine.stop();
while (true){
std::cin >> a;
if (a == "start"){
audio_engine.start();
}
else audio_engine.stop();
}
}
catch (const std::exception& error){
std::cerr << error.what() << "\n";