示例#1
0
    //==========================================================================
    private void OnCurrentAudioStreamChanged(AudioStream oldValue, AudioStream newValue)
    {
      if(MediaPlayer != null)
      {
        int index = -1;

        if(newValue != null)
          index = newValue.Track.Index;

        MediaPlayer.AudioTrackIndex = index;
      }
    }
示例#2
0
    //==========================================================================
    private AudioStream CoerceCurrentAudioStream(AudioStream value)
    {
      if(AudioStreams == null)
        return null;

      if(!AudioStreams.Contains(value))
        return null;

      return value;
    }
示例#3
0
 //==========================================================================
 private void OnAudioStreamsChanged(AudioStream[] oldValue, AudioStream[] newValue)
 {
 }