We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_freewheel
Hello, to my understanding, set_freewheel should be put after any call to Client.activate() and before any call to Client.deactivate().
Client.activate()
Client.deactivate()
I have prepared a little example to play with this. I think it should be added to the documentation...
import time import jack import threading ttt = None def trial(): A = jack.Client("A") event = threading.Event() @A.set_process_callback def process(frames): global ttt tt = time.time() print(tt) if tt - ttt > 1: event.set() global ttt ttt = time.time() # A.set_freewheel(True) # this makes `activate` fail A.activate() A.set_freewheel(True) event.wait() A.set_freewheel(False) A.deactivate() # A.set_freewheel(False) # this makes errors on the next run A.close() del A print("trial 1") trial() print("trial 2") trial()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
to my understanding,
set_freewheel
should be put after any call toClient.activate()
and before any call toClient.deactivate()
.I have prepared a little example to play with this. I think it should be added to the documentation...
The text was updated successfully, but these errors were encountered: