Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public SDL_SoundBufferSession(SDL_SoundBuffer buffer)
 {
     sound   = buffer.SoundChunk;
     channel = SdlMixer.Mix_PlayChannel(-1, sound, 0);
     volume  = buffer.Volume;
 }