Пример #1
0
 public override void Play(ISoundable sound)
 {
     ///there is no sound splitting. It is just unofficial headset:)
     Output.WriteLine($"{nameof(UnofficialHeadset)} sound");
     Speaker1.Play(sound);
     Speaker2.Play(sound);
 }
Пример #2
0
 public override void Play(ISoundable sound)
 {
     ///Sound should be splitted into 2 parts to make stereo effect.
     ///In reality spliited sound will be different, so just imagine that they diifers:)
     ISoundable[] sounds = SplitSound(sound);
     Output.WriteLine($"{nameof(SamsungHeadset)} sound");
     Speaker1.Play(sounds[0]);
     Speaker2.Play(sounds[1]);
 }
 public override void ReproduceSound(IReproduceSound sound1, IReproduceSound sound2)
 {
     Speaker1.ReproduceSound(sound1);
     Speaker2.ReproduceSound(sound2);
 }
 public override void ReproduceSound(IReproduceSound sound)
 {
     Speaker1.ReproduceSound(sound);
 }
Пример #5
0
 public override void Play(ISoundable sound)
 {
     Output.WriteLine($"{nameof(MonauralSpeakerSystem)} sound");
     Speaker1.Play(sound);
 }
Пример #6
0
 public override void Play(ISoundable sound)
 {
     Output.Write($"{nameof(ExternalSpeaker)} sound");
     Speaker1.Play(sound);
 }