Exemple #1
0
 internal void RemoveTrack(FMODAudioTrack audioTrack)
 {
     try
     {
         _tracks.Remove(audioTrack);
     }
     catch (Exception e)
     {
         GameLog.Client.Audio.Error(e);
     }
 }
Exemple #2
0
        public IAudioTrack CreateTrack(string fileName)
        {
            FMODAudioTrack track = null;

            if (File.Exists(fileName))
            {
                lock (_updateLock)
                {
                    track = new FMODAudioTrack(this, fileName);
                    _tracks.Add(track);
                    GameLog.Client.Audio.DebugFormat("Audio track file \"{0}\" playing", fileName);
                }
            }
            else
            {
                GameLog.Client.Audio.WarnFormat("Could not locate audio track file \"{0}\".",
                                                fileName);
            }

            return(track);
        }