Exemplo n.º 1
0
        /// <summary>
        /// Initializes the sound system.
        /// </summary>
        /// <param name="soundSystem">Enumeration of FSL_SOUND_SYSTEM to use.</param>
        /// <param name="listener">Camera to use as a listener for 3D sound.</param>
        /// <returns></returns>
        public bool InitializeSound(FSL_SOUND_SYSTEM soundSystem, Mogre.Camera listener)
        {
            _listener = new Listener(listener);
            GetListener().ZFlipped = true;

            if (_initSound)
            {
                return(true);
            }

            if (!FreeSL.fslInit(soundSystem))     //Change if you desire
            {
                return(false);
            }

            FreeSL.fslSetAutoUpdate(true);
            _initSound = true;
            return(true);
        }