コード例 #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);
        }
コード例 #2
0
ファイル: MixingSystem.cs プロジェクト: gixslayer/darktech
 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();
 }
コード例 #3
0
ファイル: EffectChain.cs プロジェクト: gixslayer/darktech
 public EffectChain(SampleBuffer outputBuffer)
 {
     this.outputBuffer = outputBuffer;
     this.effects      = new DoubleLinkedList <Effect>();
 }
コード例 #4
0
ファイル: StaticChannel.cs プロジェクト: gixslayer/darktech
 public StaticChannel(Vector3f location, Listener listener, SampleBuffer outputBuffer)
     : base(outputBuffer)
 {
     this.location = location;
     this.listener = listener;
 }