예제 #1
0
 public AudioStream(DVDAudioTrack audioTrack)
 {
     this.AudioID    = audioTrack.ID;
     this.LanguageID = audioTrack.LanguageID;
     this.Channels   = audioTrack.Channels;
     this.Format     = audioTrack.Format;
     this.Extension  = audioTrack.Extension;
 }
    public void SetValues()
    {
        _musicSlider.value     = _musicVolume;
        _interfaceSlider.value = _interfaceVolume;
        _effectSlider.value    = _effectsVolume;

        _audioManager.mainMixer.SetFloat("MusicVolume", AudioExtension.LinearToDecibel(_musicVolume));
        _audioManager.mainMixer.SetFloat("InterfaceVolume", AudioExtension.LinearToDecibel(_interfaceVolume));
        _audioManager.mainMixer.SetFloat("SoundVolume", AudioExtension.LinearToDecibel(_effectsVolume));
    }
예제 #3
0
        public AudioStream GetAudioSteam(AudioExtension extension)
        {
            DVDTitle title = DVDTitle;

            if (title == null)
            {
                return(null);
            }
            return(GetAudioSteam((from a in title.AudioTracks where a.Extension == extension select a).FirstOrDefault()));
        }
예제 #4
0
        public static string GetExtension(AudioExtension extension)
        {
            switch (extension)
            {
            case AudioExtension.For_visually_impaired:
                return("For visually impaired");

            case AudioExtension.Director_s_comments:
                return("Director's comments");

            case AudioExtension.Alternate_director_s_comments:
                return("Alternate director's comments");

            case AudioExtension.Unspecified:
            case AudioExtension.Normal:
            default:
                return(string.Empty);
            }
        }
 public void EffectSliderChanged()
 {
     _effectsVolume = _effectSlider.value;
     _audioManager.mainMixer.SetFloat("SoundVolume", AudioExtension.LinearToDecibel(_effectsVolume));
 }
 public void InterfaceSliderChanged()
 {
     _interfaceVolume = _interfaceSlider.value;
     _audioManager.mainMixer.SetFloat("InterfaceVolume", AudioExtension.LinearToDecibel(_interfaceVolume));
 }
 public void MusicSliderChanged()
 {
     _musicVolume = _musicSlider.value;
     _audioManager.mainMixer.SetFloat("MusicVolume", AudioExtension.LinearToDecibel(_musicVolume));
 }
예제 #8
0
 public AudioFile(string audioName, AudioExtension extension)
 {
     this.audioName = audioName;
     this.extension = extension;
 }
예제 #9
0
 public static string GetExtension(AudioExtension extension)
 {
     switch (extension)
     {
         case AudioExtension.For_visually_impaired:
             return "For visually impaired";
         case AudioExtension.Director_s_comments:
             return "Director's comments";
         case AudioExtension.Alternate_director_s_comments:
             return "Alternate director's comments";
         case AudioExtension.Unspecified:
         case AudioExtension.Normal:
         default:
             return string.Empty;
     }
 }
예제 #10
0
 public bool HasAudioSteam(AudioExtension extension)
 {
     return(GetAudioSteam(extension) != null);
 }