// Renamed, was GetBuffer3i. func (self Buffer) get3i(param int32) (value1, value2, value3 int32) { var v1, v2, v3 int32 C.walGetBuffer3i(C.ALuint(self), C.ALenum(param), unsafe.Pointer(&v1), unsafe.Pointer(&v2), unsafe.Pointer(&v3)) value1, value2, value3 = v1, v2, v3 return }
// Renamed, was GetSource3f. func (self Source) get3f(param int32) (value1, value2, value3 float32) { var v1, v2, v3 float32 C.walGetSource3f(C.ALuint(self), C.ALenum(param), unsafe.Pointer(&v1), unsafe.Pointer(&v2), unsafe.Pointer(&v3)) value1, value2, value3 = v1, v2, v3 return }
func (buffer Buffer) GetBuffer3f(param ALenum) (value1, value2, value3 float32) { C.alGetBuffer3f( C.ALuint(buffer), C.ALenum(param), (*C.ALfloat)(&value1), (*C.ALfloat)(&value2), (*C.ALfloat)(&value3), ) return }
func (source Source) GetSource3i(param ALenum) (value1, value2, value3 int32) { C.alGetSource3i( C.ALuint(source), C.ALenum(param), (*C.ALint)(&value1), (*C.ALint)(&value2), (*C.ALint)(&value3), ) return }
func (buffer Buffer) GetBuffer3i(param ALenum) (value1, value2, value3 int32) { C.alGetBuffer3i( C.ALuint(buffer), C.ALenum(param), (*C.ALint)(&value1), (*C.ALint)(&value2), (*C.ALint)(&value3), ) return }
func alBufferData(b Buffer, format uint32, data []byte, freq int32) { C.call_alBufferData(alBufferDataFunc, C.ALuint(b), C.ALenum(format), unsafe.Pointer(&data[0]), C.ALsizei(len(data)), C.ALsizei(freq)) }
func alSourceUnqueueBuffers(s Source, b []Buffer) { C.call_alSourceUnqueueBuffers(alSourceUnqueueBuffersFunc, C.ALuint(s), C.ALsizei(len(b)), (*C.ALuint)(unsafe.Pointer(&b[0]))) }
func alSourcef(s Source, k int, v float32) { C.call_alSourcef(alSourcefFunc, C.ALuint(s), C.ALenum(k), C.ALfloat(v)) }
func alGetSourcef(s Source, k int) float32 { var v C.ALfloat C.call_alGetSourcef(alGetSourcefFunc, C.ALuint(s), C.ALenum(k), &v) return float32(v) }
func GenSource() (source *Source) { source = new(Source) source.handle = C.ALuint(C.walGenSource()) return source }
// Renamed, was Sourcef. func (self Source) Setf(param int32, value float32) { C.alSourcef(C.ALuint(self), C.ALenum(param), C.ALfloat(value)) }
// Renamed, was GetSource3i. func (self Source) Get3i(param int32) (v1, v2, v3 int32) { C.walGetSource3i(C.ALuint(self), C.ALenum(param), unsafe.Pointer(&v1), unsafe.Pointer(&v2), unsafe.Pointer(&v3)) return }
// Renamed, was GetSourcei. func (self Source) Geti(param int32) int32 { return int32(C.walGetSourcei(C.ALuint(self), C.ALenum(param))) }
// Renamed, was GetSourcef. func (self Source) Getf(param int32) float32 { return float32(C.walGetSourcef(C.ALuint(self), C.ALenum(param))) }
// Renamed, was Source3i. func (self Source) Set3i(param int32, value1, value2, value3 int32) { C.alSource3i(C.ALuint(self), C.ALenum(param), C.ALint(value1), C.ALint(value2), C.ALint(value3)) }
// Convenience method, see Source.QueueBuffers(). func (self Source) QueueBuffer(buffer Buffer) { C.walSourceQueueBuffer(C.ALuint(self), C.ALuint(buffer)) }
// Convenience method, see Source.QueueBuffers(). func (self Source) UnqueueBuffer() Buffer { return Buffer(C.walSourceUnqueueBuffer(C.ALuint(self))) }
// Renamed, was GetSourceiv. func (self Source) Getiv(param int32, values []int32) { C.walGetSourceiv(C.ALuint(self), C.ALenum(param), unsafe.Pointer(&values[0])) }
// Renamed, was Source3f. func (self Source) Set3f(param int32, value1, value2, value3 float32) { C.alSource3f(C.ALuint(self), C.ALenum(param), C.ALfloat(value1), C.ALfloat(value2), C.ALfloat(value3)) }
// Renamed, was SourcePlay. func (self Source) Play() { C.alSourcePlay(C.ALuint(self)) }
func alGetSourcei(s Source, k int) int32 { var v C.ALint C.call_alGetSourcei(alGetSourceiFunc, C.ALuint(s), C.ALenum(k), &v) return int32(v) }
// Renamed, was SourceStop. func (self Source) Stop() { C.alSourceStop(C.ALuint(self)) }
func alSourcei(s Source, k int, v int32) { C.call_alSourcei(alSourcefFunc, C.ALuint(s), C.ALenum(k), C.ALint(v)) }
// Renamed, was SourceRewind. func (self Source) Rewind() { C.alSourceRewind(C.ALuint(self)) }
func alSourcefv(s Source, k int, v []float32) { C.call_alSourcefv(alSourcefvFunc, C.ALuint(s), C.ALenum(k), (*C.ALfloat)(unsafe.Pointer(&v[0]))) }
// Renamed, was SourcePause. func (self Source) Pause() { C.alSourcePause(C.ALuint(self)) }
func alGetBufferi(b Buffer, k int) int32 { var v C.ALint C.call_alGetBufferi(alGetBufferiFunc, C.ALuint(b), C.ALenum(k), &v) return int32(v) }
// Renamed, was SourceUnqueueBuffers. func (self Source) UnqueueBuffers(buffers []Buffer) { C.walSourceUnqueueBuffers(C.ALuint(self), C.ALsizei(len(buffers)), unsafe.Pointer(&buffers[0])) }
func alIsBuffer(b Buffer) bool { return C.call_alIsBuffer(alIsBufferFunc, C.ALuint(b)) == C.AL_TRUE }
// DeleteSource() deletes a single source. // Convenience function, see DeleteSources(). func DeleteSource(source Source) { C.walDeleteSource(C.ALuint(source)) }