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