예제 #1
0
        public static IAudioStream Create(IAudioSource source)
        {
            switch (source.Type)
            {
            case AudioSourceEnum.Raw:
                return(new RawAudioStream(source));

            case AudioSourceEnum.RealTime:
                return(new RealTimeAudioStream(source));

            default:
                return(null);
            }
        }
예제 #2
0
 public IAudioStream(IAudioSource source)
 {
     this.Source = source;
 }
예제 #3
0
 public RealTimeAudioStream(IAudioSource source) :
     base(source)
 {
     this.source = source as RealTimeAudioSource;
 }
예제 #4
0
 public RawAudioStream(IAudioSource source) :
     base(source)
 {
     this.source = source as RawAudioSource;
 }