Пример #1
0
        public SDL_SoundBufferSession(SDL_SoundBuffer buffer)
        {
            this.buffer = buffer;
            loop        = buffer.Loop;

            sound  = buffer.SoundChunk;
            volume = buffer.Volume;

            audio = (SDL_Audio)AgateLib.AudioLib.Audio.Impl;
        }
Пример #2
0
 public SDL_SoundBufferSession(SDL_SoundBuffer buffer)
 {
     sound   = buffer.SoundChunk;
     channel = SdlMixer.Mix_PlayChannel(-1, sound, 0);
     volume  = buffer.Volume;
 }