You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking at the examples and documentation but it's unclear how to start and stop an output stream for the same jack_client_t*. I based my code on the simple_client.c. The functions jack_activate() and jack_deactivate() seem to be the right functions to use when you want to repeatedly start and stop an audio output stream.
I'm writing a simple .wav file player which works fine although starting and stopping caused the jack daemon to shutdown and restarting/replaying a .wav file failed because of this.
After some experimenting I figured out that when I call jack_port_disconnect() for the ports that I connected, before calling jack_deactivate() solves my issues.
Is this documented somewhere? What about adding a function that correctly shutsdown a jack_client_t in the simple_client.c code?
The text was updated successfully, but these errors were encountered:
I've been looking at the examples and documentation but it's unclear how to start and stop an output stream for the same
jack_client_t*
. I based my code on the simple_client.c. The functionsjack_activate()
andjack_deactivate()
seem to be the right functions to use when you want to repeatedly start and stop an audio output stream.I'm writing a simple
.wav
file player which works fine although starting and stopping caused the jack daemon to shutdown and restarting/replaying a .wav file failed because of this.After some experimenting I figured out that when I call
jack_port_disconnect()
for the ports that I connected, before callingjack_deactivate()
solves my issues.Is this documented somewhere? What about adding a function that correctly shutsdown a
jack_client_t
in thesimple_client.c
code?The text was updated successfully, but these errors were encountered: