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