Ejemplo n.º 1
0
 public void AttachBufferToChannel(int bufferHandle, int channelHandle)
 {
     Invokes.alSourcei(channelHandle, All.Buffer, bufferHandle);
 }
Ejemplo n.º 2
0
 public unsafe void BufferData(int bufferHandle, AudioFormat format, byte[] data, int length, int sampleRate)
 {
     fixed(byte *ptr = data)
     Invokes.alBufferData(bufferHandle, AudioFormatToALFormat(format), (IntPtr)ptr, length, sampleRate);
 }
Ejemplo n.º 3
0
 public unsafe void DeleteChannel(int channelHandle)
 {
     Invokes.alDeleteSources(1, &channelHandle);
 }
Ejemplo n.º 4
0
 public unsafe void DeleteBuffer(int bufferHandle)
 {
     Invokes.alDeleteBuffers(1, &bufferHandle);
 }
Ejemplo n.º 5
0
 public unsafe void DeleteBuffers(int[] bufferHandles)
 {
     fixed(int *ptr = bufferHandles)
     Invokes.alDeleteBuffers(bufferHandles.Length, ptr);
 }
Ejemplo n.º 6
0
 public void Stop(int channelHandle)
 {
     Invokes.alSourceStop(channelHandle);
 }
Ejemplo n.º 7
0
 private static unsafe IntPtr CreateContext(IntPtr device, int[] attributes)
 {
     fixed(int *ptr = attributes)
     return(Invokes.alcCreateContext(device, ptr));
 }
Ejemplo n.º 8
0
 public void Play(int channelHandle)
 {
     Invokes.alSourcePlay(channelHandle);
 }
Ejemplo n.º 9
0
 public void SetPitch(int channelHandle, float pitch)
 {
     Invokes.alSourcef(channelHandle, All.Pitch, pitch);
 }
Ejemplo n.º 10
0
 public void SetPosition(int channelHandle, Vector3D position)
 {
     Invokes.alSource3f(channelHandle, All.Position, position.X, position.Y, position.Z);
 }
Ejemplo n.º 11
0
 public void SetVolume(int channelHandle, float volume)
 {
     Invokes.alSourcef(channelHandle, All.Gain, volume);
 }
Ejemplo n.º 12
0
 public unsafe void QueueBufferInChannel(int bufferHandle, int channelHandle)
 {
     Invokes.alSourceQueueBuffers(channelHandle, 1, &bufferHandle);
 }