pub fn play_track_preview_2_ex(
        &mut self,
        project: ProjectContext,
        register: Arc<ReaperMutex<OwnedPreviewRegister>>,
        buffering_behavior: BitFlags<BufferingBehavior>,
        measure_alignment: MeasureAlignment,
    ) -> ReaperFunctionResult<NonNull<raw::preview_register_t>> {
        self.reaper.require_valid_project(project);
        let handle = self.preview_registers.keep(register);
        unsafe {
            self.play_track_preview_2_ex_unchecked(
                project,
                handle,
                buffering_behavior,
                measure_alignment,
            )?
        };
        Ok(handle)
    }
/// Plays a preview register on a specific track.
///
/// It asks for a shared mutex-protected register because it assumes you want to keep
/// controlling the playback. With the mutex you can safely modify the register on-the-fly while
/// it's being played by REAPER.
///
/// Returns a handle which is necessary to stop the preview at a later time.
///
/// # Errors
///
/// Returns an error if not successful.
Plays a preview register on a specific track.
It asks for a shared mutex-protected register because it assumes you want to keep
controlling the playback. With the mutex you can safely modify the register on-the-fly while
it's being played by REAPER.

Returns a handle which is necessary to stop the preview at a later time.
Plays a preview register on a specific track . It asks for a shared mutex - protected register because it assumes you want to keep controlling the playback . With the mutex you can safely modify the register on - the - fly while it ' s being played by REAPER . Returns a handle which is necessary to stop the preview at a later time .
pub fn play_track_preview_2_ex(
        &mut self,
        project: ProjectContext,
        register: Arc<ReaperMutex<OwnedPreviewRegister>>,
        buffering_behavior: BitFlags<BufferingBehavior>,
        measure_alignment: MeasureAlignment,
    ) -> ReaperFunctionResult<NonNull<raw::preview_register_t>> {
        self.reaper.require_valid_project(project);
        let handle = self.preview_registers.keep(register);
        unsafe {
            self.play_track_preview_2_ex_unchecked(
                project,
                handle,
                buffering_behavior,
                measure_alignment,
            )?
        };
        Ok(handle)
    }
pub fn play_track_preview_2_ex ( & mut self , project : ProjectContext , register : Arc < ReaperMutex < OwnedPreviewRegister > > , buffering_behavior : BitFlags < BufferingBehavior > , measure_alignment : MeasureAlignment , ) -> ReaperFunctionResult < NonNull < raw :: preview_register_t > > { self . reaper . require_valid_project ( project ) ; let handle = self . preview_registers . keep ( register ) ; unsafe { self . play_track_preview_2_ex_unchecked ( project , handle , buffering_behavior , measure_alignment , ) ? } ; Ok ( handle ) }
Plays a preview register on a specific track.
Plays a preview register on a specific track .
&mut self
project
ProjectContext
register
Arc<ReaperMutex<OwnedPreviewRegister>>
buffering_behavior
BitFlags<BufferingBehavior>
measure_alignment
MeasureAlignment
&mut self
project
ProjectContext
register
Arc<ReaperMutex<OwnedPreviewRegister>>
buffering_behavior
BitFlags<BufferingBehavior>
measure_alignment
MeasureAlignment
errors
Returns an error if not successful.
Returns an error if not successful .