// Token: 0x06001E45 RID: 7749 RVA: 0x00139944 File Offset: 0x00137B44
 public static uint GetCueId(string name)
 {
     AppMain.SOUND_TABLE sound_TABLE = AppMain.sound_fx_list[name];
     return(( uint )sound_TABLE.cue);
 }
 // Token: 0x06001E50 RID: 7760 RVA: 0x00139EDC File Offset: 0x001380DC
 internal void SetCue(string se_name)
 {
     try
     {
         while (this.se_name != null)
         {
             if (!(this.se_name != se_name))
             {
                 this.Stop();
                 this.status = 1;
                 return;
             }
             this.se_name = null;
         }
         AppMain.SOUND_TABLE sound_TABLE = null;
         if (AppMain.sound_fx_list.ContainsKey(se_name))
         {
             this.cue    = -1;
             this.type   = 0;
             sound_TABLE = AppMain.sound_fx_list[se_name];
         }
         else if (AppMain.sound_bgm_list.ContainsKey(se_name))
         {
             this.type   = 1;
             sound_TABLE = AppMain.sound_bgm_list[se_name];
         }
         if (sound_TABLE != null)
         {
             this.effectscount = sound_TABLE.count;
             this.se_name      = se_name;
             this.aisac_list   = sound_TABLE.asiac;
             this.cue          = sound_TABLE.cue;
             this.sound        = new SoundEffectInstance[this.effectscount];
             this.volume       = new float[this.effectscount];
             if (this.type == 0)
             {
                 this.activefx      = 0;
                 this.status_paused = false;
                 for (int i = 0; i < this.effectscount; i++)
                 {
                     if (AppMain.cacheFxSounds.ContainsKey(sound_TABLE.filename[i]))
                     {
                         SoundEffect soundEffect = AppMain.cacheFxSounds[sound_TABLE.filename[i]];
                         this.m_sndEffect = soundEffect;
                         if (sound_TABLE.loop[i])
                         {
                             SoundEffectInstance soundEffectInstance = null;
                             try
                             {
                                 soundEffectInstance = soundEffect.CreateInstance();
                             }
                             catch (Exception)
                             {
                                 GC.Collect();
                                 try
                                 {
                                     soundEffectInstance = soundEffect.CreateInstance();
                                 }
                                 catch (Exception)
                                 {
                                     this.status = 4;
                                     return;
                                 }
                             }
                             this.sound[i]              = soundEffectInstance;
                             this.sound[i].IsLooped     = sound_TABLE.loop[i];
                             soundEffectInstance.Volume = 0f;
                             soundEffectInstance.Pitch  = this.pitch;
                             soundEffectInstance.Play();
                             soundEffectInstance.Pause();
                             soundEffectInstance.Volume = sound_TABLE.volume[i];
                         }
                         else
                         {
                             this.sound[i]        = soundEffect.CreateInstance();
                             this.sound[i].Volume = sound_TABLE.volume[i];
                             this.sound[i].Play();
                         }
                     }
                     else
                     {
                         AppMain.mppAssertNotImpl();
                     }
                 }
             }
             else
             {
                 AppMain.CriAuPlayer.m_songBGM = AppMain._GetPreloadedBGM(sound_TABLE.filename[0]);
                 if (AppMain.CriAuPlayer.m_songBGM == null)
                 {
                     AppMain.CriAuPlayer.m_songBGM = Sonic4Ep1.pInstance.Content.Load <Song>("Sound/" + sound_TABLE.filename[0]);
                     AppMain.bgmPreloadedList.Add(sound_TABLE.filename[0], AppMain.CriAuPlayer.m_songBGM);
                 }
                 AppMain.CriAuPlayer.m_ActiveSong = se_name;
                 this.m_fBGVolume = -1f;
                 this.m_bLoop     = sound_TABLE.loop[0];
             }
             this.status = 1;
         }
         else
         {
             this.status = 4;
         }
     }
     catch (Exception ex)
     {
         ex.ToString();
         this.status = 4;
     }
 }