pub fn ext_export_to_file(&self, file_name: &Path) -> ReaperFunctionResult<()> {
        let file_name_str = file_name.to_str().expect("file name is not valid UTF-8");
        let file_name_reaper_string = ReaperString::from_str(file_name_str);
        let supported = unsafe {
            self.0.Extended(
                raw::PCM_SOURCE_EXT_EXPORTTOFILE as _,
                file_name_reaper_string.as_ptr() as _,
                null_mut(),
                null_mut(),
            )
        };
        if supported == 0 {
            return Err(ReaperFunctionError::new(
                "PCM_SOURCE_EXT_EXPORTTOFILE not supported by source",
            ));
        }
        Ok(())
    }
/// Writes the content of this source to the given file.
///
/// Only currently supported by MIDI but in theory any source could support this.
///
/// # Errors
///
/// Returns an error if not supported.
Writes the content of this source to the given file.
Only currently supported by MIDI but in theory any source could support this.
Writes the content of this source to the given file . Only currently supported by MIDI but in theory any source could support this .
pub fn ext_export_to_file(&self, file_name: &Path) -> ReaperFunctionResult<()> {
        let file_name_str = file_name.to_str().expect("file name is not valid UTF-8");
        let file_name_reaper_string = ReaperString::from_str(file_name_str);
        let supported = unsafe {
            self.0.Extended(
                raw::PCM_SOURCE_EXT_EXPORTTOFILE as _,
                file_name_reaper_string.as_ptr() as _,
                null_mut(),
                null_mut(),
            )
        };
        if supported == 0 {
            return Err(ReaperFunctionError::new(
                "PCM_SOURCE_EXT_EXPORTTOFILE not supported by source",
            ));
        }
        Ok(())
    }
pub fn ext_export_to_file ( & self , file_name : & Path ) -> ReaperFunctionResult < ( ) > { let file_name_str = file_name . to_str ( ) . expect ( " " ) ; let file_name_reaper_string = ReaperString :: from_str ( file_name_str ) ; let supported = unsafe { self . 0 . Extended ( raw :: PCM_SOURCE_EXT_EXPORTTOFILE as _ , file_name_reaper_string . as_ptr ( ) as _ , null_mut ( ) , null_mut ( ) , ) } ; if supported == 0 { return Err ( ReaperFunctionError :: new ( " " , ) ) ; } Ok ( ( ) ) }
Writes the content of this source to the given file.
Writes the content of this source to the given file .
&self
file_name
&Path
&self
file_name
&Path
errors
Returns an error if not supported.
Returns an error if not supported .