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
Currently I cannot add the IS_TERMINAL flag to AudioIn — and if I create my own variant and unsafe impl PortSpec for it, I lose all the as_slice() etc helper methods provided.
Could e.g. implement like:
pubstructAudioIn(PortFlags);implAudioIn{/// # Example/// ```/// let spec = jack::AudioIn::with_extra_port_flags(jack::PortFlags::IS_TERMINAL);/// let audio_out_port = client.register_port("out", spec).unwrap();/// ```pubfnwith_extra_port_flags(flags:PortFlags) -> Self{Self(flags)}}unsafeimplPortSpecforAudioIn{fnjack_flags(&self) -> PortFlags{PortFlags::IS_INPUT.union(self.0)}}
Since it seemed the examples suggest using AudioIn::default() to construct instances I think this would not be considered API breakage.
The text was updated successfully, but these errors were encountered:
Currently I cannot add the IS_TERMINAL flag to
AudioIn
— and if I create my own variant andunsafe impl PortSpec
for it, I lose all theas_slice()
etc helper methods provided.Could e.g. implement like:
Since it seemed the examples suggest using
AudioIn::default()
to construct instances I think this would not be considered API breakage.The text was updated successfully, but these errors were encountered: