private static void LoadDatabaseTables() { Logger.LoadLogEntries(); Logger.AddLogEntry(LogCategory.INFO, "NEW SESSION STARTED..."); Settings.LoadSettingsFromDB(); AudioClipsMgr.LoadAudioClipsFromDB(); AudioClipsMgr.LoadTimeTriggerClipsFromDB(); GoogleTextToSpeechMgr.LoadOnlineVoicesFromDB(); SessionsMgr.LoadSessionsFromDB(); AudioMgr.GetAudioDevices(); }
public static List <AudioClip> GetAudioClips(string sessionName, string category) { List <AudioClip> audioClips = new List <AudioClip>(); var session = SessionsMgr.GetSession(sessionName); if (session != null) { var sessionClips = GetAudioClips(session.SessionAudioClipsList); foreach (var sessionClip in sessionClips) { if (sessionClip.Category.Equals(category)) { audioClips.Add(sessionClip); } } } return(audioClips); }