MegaMan.Engine.Music.Music C# (CSharp) Method

Music() public method

public Music ( FMOD system, string intropath, string looppath, float baseVol ) : System
system FMOD
intropath string
looppath string
baseVol float
return FMOD.System
        public Music(FMOD.System system, string intropath, string looppath, float baseVol)
        {
            this.system = system;
            callback = new CHANNEL_CALLBACK(SyncCallback);

            baseVolume = baseVol;
            volume = 1;

            if (looppath != null) system.createSound(looppath, MODE.LOOP_NORMAL, ref loop);

            if (intropath != null)
            {
                system.createSound(intropath, MODE.DEFAULT, ref intro);
            }

            Playing = false;
        }