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)); }
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())); }
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)); }
public AudioFile(string audioName, AudioExtension extension) { this.audioName = audioName; this.extension = extension; }
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 bool HasAudioSteam(AudioExtension extension) { return(GetAudioSteam(extension) != null); }