Exemplo 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;
        }
Exemplo 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;
        }
Exemplo n.º 3
0
        public Insane(ScummEngine7 scumm)
        {
            _vm = scumm;

            InitVars();

            if (!(_vm.Game.Features.HasFlag(GameFeatures.Demo) /*&& (_vm.Game.Platform == Platform.Dos)*/))
            {
                _smush_roadrashRip = ReadFileToMem("roadrash.rip");
                _smush_roadrsh2Rip = ReadFileToMem("roadrsh2.rip");
                _smush_roadrsh3Rip = ReadFileToMem("roadrsh3.rip");
                _smush_goglpaltRip = ReadFileToMem("goglpalt.rip");
                _smush_tovista1Flu = ReadFileToMem("tovista1.flu");
                _smush_tovista2Flu = ReadFileToMem("tovista2.flu");
                _smush_toranchFlu = ReadFileToMem("toranch.flu");
                _smush_minedrivFlu = ReadFileToMem("minedriv.flu");
                _smush_minefiteFlu = ReadFileToMem("minefite.flu");

                _smush_bensgoggNut = new NutRenderer(_vm, "bensgogg.nut");
                _smush_bencutNut = new NutRenderer(_vm, "bencut.nut");
            }
            _smush_iconsNut = new NutRenderer(_vm, "icons.nut");
            _smush_icons2Nut = new NutRenderer(_vm, "icons2.nut");
        }
Exemplo n.º 4
0
 public SmushPlayer(ScummEngine7 scumm)
 {
     _vm = scumm;
     _smixer = _vm.SmushMixer;
 }
Exemplo n.º 5
0
 public SmushPlayer(ScummEngine7 scumm)
 {
     _vm     = scumm;
     _smixer = _vm.SmushMixer;
 }