use core_foundation_sys::base::OSStatus; use coremidi_sys::MIDIFlushOutput;
usecrate::object::Object;
/// A MIDI source or source, owned by an entity. /// See [MIDIEndpointRef](https://developer.apple.com/reference/coremidi/midiendpointref). /// /// You don't need to create an endpoint directly, instead you can create system sources and sources or virtual ones from a client. /// #[derive(Debug)] pubstruct Endpoint { pub(crate) object: Object,
}
impl Endpoint { /// Unschedules previously-sent packets. /// See [MIDIFlushOutput](https://developer.apple.com/reference/coremidi/1495312-midiflushoutput). /// pubfn flush(&self) -> Result<(), OSStatus> { let status = unsafe { MIDIFlushOutput(self.object.0) }; if status == 0 {
Ok(())
} else {
Err(status)
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.