Exemplo n.º 1
0
 public void BufferData(byte[] data, ALFormat format, int size, int freq)
 {
     AL.BufferData(_id, format, data, size, freq);
     ALHelper.CheckError("Failed to fill buffer.");
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     //Console.WriteLine("Del buf #" + _buffer);
     AL.DeleteBuffer(_id);
     ALHelper.CheckError("Failed to DeleteBuffer buffer.");
 }
Exemplo n.º 3
0
 public SoundBuffer()
 {
     _id = AL.GenBuffer();
     //Console.WriteLine("Gen buf #"+_buffer);
     ALHelper.CheckError("Failed to GenBuffers.");
 }