pub struct SoundsEnv {
pub config_dir: PathBuf,
pub sounds_dir: PathBuf,
pub cache_dir: PathBuf,
pub clap_dir: PathBuf,
pub vst3_dir: PathBuf,
}Expand description
Where the resolver and the sounds registry keep their files. SoundsEnv::from_env
uses the standard ferraus folders; tests build one on a temp dir.
Fields§
§config_dir: PathBuf§sounds_dir: PathBuf<data>/sounds: installed SoundFonts, SFZ libraries, IRs, and installed.json.
cache_dir: PathBuf§clap_dir: PathBuf§vst3_dir: PathBufImplementations§
Source§impl SoundsEnv
impl SoundsEnv
pub fn from_env() -> SoundsEnv
pub fn aliases_file(&self) -> PathBuf
pub fn installed_file(&self) -> PathBuf
pub fn scan_cache(&self) -> PathBuf
pub fn index_dir(&self) -> PathBuf
pub fn downloads_dir(&self) -> PathBuf
pub fn plugin_dir(&self, f: PluginFormat) -> &Path
Trait Implementations§
Auto Trait Implementations§
impl Forget for SoundsEnv
impl Freeze for SoundsEnv
impl Move for SoundsEnv
impl RefUnwindSafe for SoundsEnv
impl Send for SoundsEnv
impl Sync for SoundsEnv
impl Unpin for SoundsEnv
impl UnsafeUnpin for SoundsEnv
impl UnwindSafe for SoundsEnv
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more