Skip to content

Stopping a Midi Loop #311

Answered by melanchall
Lenvdb64 asked this question in Q&A
Discussion options

You must be logged in to vote

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 use SpinWait? 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 define OutputDevice and

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melanchall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants