示例#1
0
 public MusicPlayer(IMediaDatabase db, ISoundComponent sc)
 {
     SongsInQueue    = new List <ISong>();
     _mediaDb        = db;
     _soundComponent = sc;
     _mediaDb.OpenConnection();
 }
示例#2
0
 public static void RegisterSoundComponent(ISoundComponent sound)
 {
     _soundComponent = sound;
 }