public IMovie GetMovie(SongInformation songInformation) { if (songInformation == null) { return(null); } CurrentSong = songInformation; var filename = songInformation.MoviePath; if (PPDSetting.Setting.IsMovie(filename)) { switch (PPDSetting.Setting.MoviePlayType) { /*case MoviePlayType.VMR9: * CurrentPlayerBase = new VMR9Movie(device, ((PPDFramework.DX9.PPDDevice)device).D3D, filename); * break;*/ default: CurrentPlayerBase = new SampleGrabberMovie(device, filename); break; } } else { CurrentPlayerBase = new MusicPlayer(device, filename); } CurrentPlayerBase.UserVolume = songInformation.UserVolume; return(CurrentPlayerBase); }
public IMovie GetMovie(SongInformation songInformation) { if (songInformation == null) { return(null); } CurrentSong = songInformation; var filename = songInformation.MoviePath; if (PPDSetting.Setting.IsMovie(filename)) { CurrentPlayerBase = new SampleGrabberMovie(device, filename); } else { CurrentPlayerBase = new MusicPlayer(device, filename); } CurrentPlayerBase.UserVolume = songInformation.UserVolume; return(CurrentPlayerBase); }