mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-01 16:46:41 +01:00
jack: add Port::close
This commit is contained in:
parent
57e0f64056
commit
80964d5b4a
2 changed files with 11 additions and 5 deletions
|
|
@ -55,7 +55,7 @@ impl HasJack for &Jack {
|
|||
/// Wraps [JackState] and through it [jack::Client].
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct Jack {
|
||||
state: Arc<RwLock<JackState>>
|
||||
pub state: Arc<RwLock<JackState>>
|
||||
}
|
||||
|
||||
impl Jack {
|
||||
|
|
@ -99,7 +99,8 @@ impl Jack {
|
|||
/// This is a connection which may be [Inactive], [Activating], or [Active].
|
||||
/// In the [Active] and [Inactive] states, [JackState::client] returns a
|
||||
/// [jack::Client], which you can use to talk to the JACK API.
|
||||
#[derive(Debug, Default)] enum JackState {
|
||||
#[derive(Debug, Default)]
|
||||
pub enum JackState {
|
||||
/// Unused
|
||||
#[default] Inert,
|
||||
/// Before activation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue