public void SelectEffectComponent(AVAudioUnitComponent component, Action completionHandler) { AudioComponentDescription?desc = (component != null) ? component.AudioComponentDescription : default(AudioComponentDescription?); SelectEffectWithComponentDescription(desc, completionHandler); }
public void RowSelected(UITableView tableView, NSIndexPath indexPath) { var row = indexPath.Row; if (tableView == AudioUnitTableView) { Action completionHandler = PresetTableView.ReloadData; AVAudioUnitComponent component = row > 0 ? playEngine.AvailableEffects [row - 1] : null; playEngine.SelectEffectComponent(component, completionHandler); RemoveChildController(); NoViewLabel.Hidden = false; } else if (tableView == PresetTableView) { playEngine.SelectPresetIndex(row); } }
public void SelectEffectComponent (AVAudioUnitComponent component, Action completionHandler) { AudioComponentDescription? desc = (component != null) ? component.AudioComponentDescription : default(AudioComponentDescription?); SelectEffectWithComponentDescription (desc, completionHandler); }