pub enum RecordingInput {
Mono(u32),
MonoReaRoute(u32),
Stereo(u32),
StereoReaRoute(u32),
Midi {
device_id: Option<MidiInputDeviceId>,
channel: Option<Channel>,
},
}
Expand description
Recording input of a track.
Variants§
Mono(u32)
Index refers to a single mono channel.
MonoReaRoute(u32)
Index refers to a single ReaRoute mono channel.
Stereo(u32)
Index refers to the first of two channels in a stereo channel pair.
StereoReaRoute(u32)
Index refers to the first of two channels in a ReaRoute stereo channel pair.
Midi
Implementations§
Source§impl RecordingInput
impl RecordingInput
Sourcepub fn try_from_raw(
rec_input_index: i32,
) -> Result<RecordingInput, TryFromRawError<i32>>
pub fn try_from_raw( rec_input_index: i32, ) -> Result<RecordingInput, TryFromRawError<i32>>
Converts an integer as returned by the low-level API to a recording input.
§Errors
Fails if the given integer is not a valid recording input index.
Trait Implementations§
Source§impl Clone for RecordingInput
impl Clone for RecordingInput
Source§fn clone(&self) -> RecordingInput
fn clone(&self) -> RecordingInput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RecordingInput
impl Debug for RecordingInput
Source§impl Hash for RecordingInput
impl Hash for RecordingInput
Source§impl PartialEq for RecordingInput
impl PartialEq for RecordingInput
impl Copy for RecordingInput
impl Eq for RecordingInput
impl StructuralPartialEq for RecordingInput
Auto Trait Implementations§
impl Freeze for RecordingInput
impl RefUnwindSafe for RecordingInput
impl Send for RecordingInput
impl Sync for RecordingInput
impl Unpin for RecordingInput
impl UnwindSafe for RecordingInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more