Skip to content

Unclear how to start and restart an audio output stream #88

@roxlu

Description

@roxlu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions