Ejemplo n.º 1
0
        public void play()
        {
            if (musicStream == null || musicStream.IsEmpty)
                musicStream = musicGenerator.Generate();

            musicPlayingFacade.play(musicStream);
        }
 public MusicDispatcher GetMusicDispatcher(MusicStream musicStream, int beatsPerMinute)
 {
     return new MusicDispatcher(midiIntegrationFacade, musicStream, new Timer(), beatsPerMinute);
 }
Ejemplo n.º 3
0
 public void play(MusicStream musicStream)
 {
     musicPlayer.play(musicStream);
 }
Ejemplo n.º 4
0
 public UIAbstractionFacade(StreamGenerator musicGenerator, MusicPlayingFacade musicPlayingFacade)
 {
     this.musicGenerator = musicGenerator;
     this.musicPlayingFacade = musicPlayingFacade;
     this.musicStream = null;
 }