void AddBuffer(string filename, Sounds thisSound, bool looping, int volume)
        {
            SoundBuffer buffer;

            buffer = new SoundBuffer(
                soundDevice,
                filename,
                thisSound,
                looping);
            sounds.Add(buffer);
            buffer.Volume = volume;
        }
示例#2
0
        void AddBuffer(string filename, Sounds thisSound, bool looping, int volume)
        {
            SoundBuffer buffer;

            buffer = new SoundBuffer(
                soundDevice,
                filename,
                thisSound,
                looping);
            sounds.Add(buffer);
            buffer.Volume = volume;
        }