[quote author="Gerolf" date="1312906849"]
[quote author="ogopa" date="1312902815"][quote author="Gerolf" date="1312900157"]# Did you check, whether line 25 is executed?
Did you try to debug it and step through to check what happens?
You have an endless loop here (where is isTrue set to false?)
If you provide a full, runnable and debuggable example, perhaps others could also try with the debugger...[/quote]
Hi, yes line 25 has executed. I just debugged it and there seems to be no issues.
isTrue is set to false under my second pushButton function (pushButton2) which is to terminate the loop. I have actually solved the issue, it doesn't terminate anymore. There are no more errors, but now, the problem is when I hit the pushButton, it doesn't generate any sine wave:( Definitely, here is my wave.cpp:
[/quote]
Hi,
As the loop executed on a button press, which means runs inside the main event loop, tzhe second button press will never be executed, as the main thread is blocked.
Regarding the other thing, I have no idea, as I have no experience in sound card programming...
[/quote]
ok. Thanks for your help. Much appreciated.