public ComponentPlayer(ChangeMusicPrevious aChangeMusicPrevious, ChangeMusicNext aChangeMusicNext) { mouseButton = false; title = ""; player = new PlayerNull(); changeMusicPrevious = aChangeMusicPrevious; changeMusicNext = aChangeMusicNext; positionInBuffer = 0; componentGui = new ComponentGui(); }
public ComponentLoopEditor(ChangeMusicPrevious aChangeMusicPrevious, ChangeMusicNext aChangeMusicNext) { mouseButtonPrevious = false; title = ""; player = new PlayerNull(); changeMusicPrevious = aChangeMusicPrevious; changeMusicNext = aChangeMusicNext; positionInBuffer = 0; componentLoopSelector = new ComponentLoopSelector(this); componentWaveform = new ComponentWaveform(player, new sbyte[2]); componentWaveformSmall = new ComponentWaveformSmall(player, new sbyte[2]); componentGui = new ComponentGui(); scale = 1.0f; scaleRate = 0.0f; positionWaveform = 0.0f; textureCursorMove = ( Texture2D )Resources.Load("Cursor/CursorHand"); textureCursorHorizontal = ( Texture2D )Resources.Load("Cursor/CursorLeftRight"); }
public ViewLoopPlayer(FileInfo aFileInfo, ChangeMusicPrevious aChangeMusicPrevious, ChangeMusicNext aChangeMusicNext) { fileInfo = aFileInfo; if (fileInfo == null) { title = "Title"; player = new PlayerNull(); } else { title = fileInfo.Name; player = PlayerLoader.Load(fileInfo.FullName); } changeMusicPrevious = aChangeMusicPrevious; changeMusicNext = aChangeMusicNext; isMute = false; volume = 0.5f; volumePre = 0.5f; position = 0.0f; positionPre = 0.0f; }