Ejemplo n.º 1
0
        public IMuseDigital(ScummEngine7 scumm, IMixer mixer, int fps)
        {
            _vm    = scumm;
            _mixer = mixer;

            _pause = false;
            _sound = new ImuseDigiSndMgr(_vm);
            Debug.Assert(_sound != null);
            _callbackFps = fps;
            ResetState();
            for (int l = 0; l < MaxDigitalTracks + MaxDigitalFadeTracks; l++)
            {
                _track[l]         = new Track();
                _track[l].TrackId = l;
            }

            _timer = new Timer(new TimerCallback(o => Callback()), this, TimeSpan.Zero, TimeSpan.FromMilliseconds(1000 / _callbackFps));

            _audioNames    = null;
            _numAudioNames = 0;
        }
Ejemplo n.º 2
0
        public IMuseDigital(ScummEngine7 scumm, IMixer mixer, int fps)
        {
            _vm = scumm;
            _mixer = mixer;

            _pause = false;
            _sound = new ImuseDigiSndMgr(_vm);
            Debug.Assert(_sound != null);
            _callbackFps = fps;
            ResetState();
            for (int l = 0; l < MaxDigitalTracks + MaxDigitalFadeTracks; l++)
            {
                _track[l] = new Track();
                _track[l].TrackId = l;
            }

            _timer = new Timer(new TimerCallback(o => Callback()), this, TimeSpan.Zero, TimeSpan.FromMilliseconds(1000 / _callbackFps));

            _audioNames = null;
            _numAudioNames = 0;
        }