Ejemplo n.º 1
0
        public OpenALVoice()
        {
            this.sampleBuffer = new SampleBuffer();
            this.bufferSize   = 441; // 441 samples = 10ms @ 44100Hz
            this.bufferCount  = 1;
            this.bufferQueue  = new Queue <uint>();

            al.GenBuffers(1, out sid);
        }
Ejemplo n.º 2
0
 internal MixingSystem()
 {
     this.activeProviders  = new LinkedList <SampleProvider>();
     this.stoppedProviders = new ArrayList <SampleProvider>(8);
     this.activeChannels   = new LinkedList <Channel>();
     this.stoppedChannels  = new ArrayList <Channel>(8);
     this.masterBuffer     = new SampleBuffer(64);
     this.openALVoice      = new OpenALVoice();
     this.listener         = new Listener();
 }
Ejemplo n.º 3
0
 public EffectChain(SampleBuffer outputBuffer)
 {
     this.outputBuffer = outputBuffer;
     this.effects      = new DoubleLinkedList <Effect>();
 }
Ejemplo n.º 4
0
 public StaticChannel(Vector3f location, Listener listener, SampleBuffer outputBuffer)
     : base(outputBuffer)
 {
     this.location = location;
     this.listener = listener;
 }