Stopping a Midi Loop #311
-
Hi all How did you work around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, First of all, read this article for future issues – Support. From the article you'll learn that code should be given as text, not as a screenshot. It forces me to type your code to show errors instead of just copying/pasting. Secondly, you definitely need to learn how things you use works. So there is no error in the library. There is no issue in using the |
Beta Was this translation helpful? Give feedback.
Hi,
First of all, read this article for future issues – Support. From the article you'll learn that code should be given as text, not as a screenshot. It forces me to type your code to show errors instead of just copying/pasting.
Secondly, you definitely need to learn how things you use works.
SpinWait
blocks your main thread which is the UI thread in your case. Why do you need to useSpinWait
? I suppose you take it from the example from the Playback – Overview. But it's not a good idea to just copy/paste code without understanding it :-)So there is no error in the library. There is no issue in using the
Loop
property. But there is an error in your code. You need to defineOutputDevice
and