/**
         * @brief       unload the preloaded effect from internal buffer
         * @param[in]		pszFilePath		The path of the effect file,or the FileName of T_SoundResInfo
         */

        public void UnloadEffect(string pszFilePath)
        {
            int nId = pszFilePath.GetHashCode();

            lock (SharedList) {
                if (SharedList.ContainsKey(nId))
                {
                    SharedList.Remove(nId);
                }
            }
            lock (_LoopedSounds)
            {
                if (_LoopedSounds.ContainsKey(nId))
                {
                    _LoopedSounds.Remove(nId);
                }
            }
        }
Exemplo n.º 2
0
        public void UnloadEffect(string filename)
        {
            int nId = filename.GetHashCode();

            lock (SharedList)
            {
                if (SharedList.ContainsKey(nId))
                {
                    SharedList.Remove(nId);
                }
            }
            lock (loopedSounds)
            {
                if (loopedSounds.ContainsKey(nId))
                {
                    loopedSounds.Remove(nId);
                }
            }
        }