Skip to main content

get_all_ir_profiles

Function get_all_ir_profiles 

Source
pub fn get_all_ir_profiles(
    file_service: State<'_, FileService>,
    audio_service: State<'_, Mutex<AudioService>>,
) -> Result<Vec<IrProfileDto>, String>
Expand description

Returns the full list of available IR profiles annotated with usage state.

This command merges:

  • default profiles from the bundled resources/default_ir directory,
  • custom profiles from the user’s writable custom IR directory.

Each IrProfileDto::is_in_use flag reflects whether any Cabinet effect in any active channel currently references that profile. The frontend uses this to disable the remove-button for profiles that are in active use.

§Errors

Propagates errors from FileService::get_all_ir_profiles or locking the audio service.