예제 #1
0
        public ComponentPlayer(ChangeMusicPrevious aChangeMusicPrevious, ChangeMusicNext aChangeMusicNext)
        {
            mouseButton = false;

            title  = "";
            player = new PlayerNull();

            changeMusicPrevious = aChangeMusicPrevious;
            changeMusicNext     = aChangeMusicNext;

            positionInBuffer = 0;
            componentGui     = new ComponentGui();
        }
예제 #2
0
        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");
        }