Documentation
¶
Overview ¶
Package openal provides a fluent Go API over the macOS OpenAL framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- func AlBuffer3f(bid int, param int, value1 float32, value2 float32, value3 float32)
- func AlBuffer3i(bid int, param int, value1 int, value2 int, value3 int)
- func AlBufferData(bid int, format int, data unsafe.Pointer, size int, freq int)
- func AlBufferf(bid int, param int, value float32)
- func AlBufferfv(bid int, param int, values unsafe.Pointer)
- func AlBufferi(bid int, param int, value int)
- func AlBufferiv(bid int, param int, values unsafe.Pointer)
- func AlDeleteBuffers(n int, buffers unsafe.Pointer)
- func AlDeleteSources(n int, sources unsafe.Pointer)
- func AlDisable(capability int)
- func AlDistanceModel(distanceModel int)
- func AlDopplerFactor(value float32)
- func AlDopplerVelocity(value float32)
- func AlEnable(capability int)
- func AlGenBuffers(n int) (buffers int)
- func AlGenSources(n int) (sources int)
- func AlGetBoolean(param int) int8
- func AlGetBooleanv(param int) (data int8)
- func AlGetBuffer3f(bid int, param int) (value1 float32, value2 float32, value3 float32)
- func AlGetBuffer3i(bid int, param int) (value1 int, value2 int, value3 int)
- func AlGetBufferf(bid int, param int) (value float32)
- func AlGetBufferfv(bid int, param int) (values float32)
- func AlGetBufferi(bid int, param int) (value int)
- func AlGetBufferiv(bid int, param int) (values int)
- func AlGetDouble(param int) float64
- func AlGetDoublev(param int) (data float64)
- func AlGetEnumValue(ename unsafe.Pointer) int
- func AlGetError() int
- func AlGetFloat(param int) float32
- func AlGetFloatv(param int) (data float32)
- func AlGetInteger(param int) int
- func AlGetIntegerv(param int) (data int)
- func AlGetListener3f(param int) (value1 float32, value2 float32, value3 float32)
- func AlGetListener3i(param int) (value1 int, value2 int, value3 int)
- func AlGetListenerf(param int) (value float32)
- func AlGetListenerfv(param int) (values float32)
- func AlGetListeneri(param int) (value int)
- func AlGetListeneriv(param int) (values int)
- func AlGetProcAddress(fname unsafe.Pointer) unsafe.Pointer
- func AlGetSource3f(sid int, param int) (value1 float32, value2 float32, value3 float32)
- func AlGetSource3i(sid int, param int) (value1 int, value2 int, value3 int)
- func AlGetSourcef(sid int, param int) (value float32)
- func AlGetSourcefv(sid int, param int) (values float32)
- func AlGetSourcei(sid int, param int) (value int)
- func AlGetSourceiv(sid int, param int) (values int)
- func AlGetString(param int) unsafe.Pointer
- func AlIsBuffer(bid int) int8
- func AlIsEnabled(capability int) int8
- func AlIsExtensionPresent(extname unsafe.Pointer) int8
- func AlIsSource(sid int) int8
- func AlListener3f(param int, value1 float32, value2 float32, value3 float32)
- func AlListener3i(param int, value1 int, value2 int, value3 int)
- func AlListenerf(param int, value float32)
- func AlListenerfv(param int, values unsafe.Pointer)
- func AlListeneri(param int, value int)
- func AlListeneriv(param int, values unsafe.Pointer)
- func AlSource3f(sid int, param int, value1 float32, value2 float32, value3 float32)
- func AlSource3i(sid int, param int, value1 int, value2 int, value3 int)
- func AlSourcePause(sid int)
- func AlSourcePausev(ns int, sids unsafe.Pointer)
- func AlSourcePlay(sid int)
- func AlSourcePlayv(ns int, sids unsafe.Pointer)
- func AlSourceQueueBuffers(sid int, numEntries int, bids unsafe.Pointer)
- func AlSourceRewind(sid int)
- func AlSourceRewindv(ns int, sids unsafe.Pointer)
- func AlSourceStop(sid int)
- func AlSourceStopv(ns int, sids unsafe.Pointer)
- func AlSourceUnqueueBuffers(sid int, numEntries int) (bids int)
- func AlSourcef(sid int, param int, value float32)
- func AlSourcefv(sid int, param int, values unsafe.Pointer)
- func AlSourcei(sid int, param int, value int)
- func AlSourceiv(sid int, param int, values unsafe.Pointer)
- func AlSpeedOfSound(value float32)
- func AlcCaptureCloseDevice(device unsafe.Pointer) int8
- func AlcCaptureOpenDevice(devicename unsafe.Pointer, frequency int, format int, buffersize int) unsafe.Pointer
- func AlcCaptureSamples(device unsafe.Pointer, buffer unsafe.Pointer, samples int)
- func AlcCaptureStart(device unsafe.Pointer)
- func AlcCaptureStop(device unsafe.Pointer)
- func AlcCloseDevice(device unsafe.Pointer) int8
- func AlcCreateContext(device unsafe.Pointer, attrlist unsafe.Pointer) unsafe.Pointer
- func AlcDestroyContext(context_ unsafe.Pointer)
- func AlcGetContextsDevice(context_ unsafe.Pointer) unsafe.Pointer
- func AlcGetCurrentContext() unsafe.Pointer
- func AlcGetEnumValue(device unsafe.Pointer, enumname unsafe.Pointer) int
- func AlcGetError(device unsafe.Pointer) int
- func AlcGetIntegerv(device unsafe.Pointer, param int, size int) (data int)
- func AlcGetProcAddress(device unsafe.Pointer, funcname unsafe.Pointer) unsafe.Pointer
- func AlcGetString(device unsafe.Pointer, param int) unsafe.Pointer
- func AlcIsExtensionPresent(device unsafe.Pointer, extname unsafe.Pointer) int8
- func AlcMakeContextCurrent(context_ unsafe.Pointer) int8
- func AlcOpenDevice(devicename unsafe.Pointer) unsafe.Pointer
- func AlcProcessContext(context_ unsafe.Pointer)
- func AlcSuspendContext(context_ unsafe.Pointer)
- func AlutExit() unsafe.Pointer
- func AlutInit(argv unsafe.Pointer) (result unsafe.Pointer, argc int)
- func AlutLoadWAVFile(data unsafe.Pointer) (result unsafe.Pointer, file int8, format int, size int, freq int)
- func AlutLoadWAVMemory(data unsafe.Pointer) (result unsafe.Pointer, memory int8, format int, size int, freq int)
- func AlutUnloadWAV(format int, data unsafe.Pointer, size int, freq int) unsafe.Pointer
- type ALCcontext
- type ALCcontext_struct
- type ALCdevice
- type ALCdevice_struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlBuffer3f ¶
AlBuffer3f calls the OpenAL framework function alBuffer3f.
func AlBuffer3i ¶
AlBuffer3i calls the OpenAL framework function alBuffer3i.
func AlBufferData ¶
AlBufferData calls the OpenAL framework function alBufferData.
func AlBufferfv ¶
AlBufferfv calls the OpenAL framework function alBufferfv.
func AlBufferiv ¶
AlBufferiv calls the OpenAL framework function alBufferiv.
func AlDeleteBuffers ¶
AlDeleteBuffers calls the OpenAL framework function alDeleteBuffers.
func AlDeleteSources ¶
AlDeleteSources calls the OpenAL framework function alDeleteSources.
func AlDisable ¶
func AlDisable(capability int)
AlDisable calls the OpenAL framework function alDisable.
func AlDistanceModel ¶
func AlDistanceModel(distanceModel int)
AlDistanceModel calls the OpenAL framework function alDistanceModel.
func AlDopplerFactor ¶
func AlDopplerFactor(value float32)
AlDopplerFactor calls the OpenAL framework function alDopplerFactor.
func AlDopplerVelocity ¶
func AlDopplerVelocity(value float32)
AlDopplerVelocity calls the OpenAL framework function alDopplerVelocity.
func AlEnable ¶
func AlEnable(capability int)
AlEnable calls the OpenAL framework function alEnable.
func AlGenBuffers ¶
AlGenBuffers calls the OpenAL framework function alGenBuffers.
func AlGenSources ¶
AlGenSources calls the OpenAL framework function alGenSources.
func AlGetBoolean ¶
AlGetBoolean calls the OpenAL framework function alGetBoolean.
func AlGetBooleanv ¶
AlGetBooleanv calls the OpenAL framework function alGetBooleanv.
func AlGetBuffer3f ¶
AlGetBuffer3f calls the OpenAL framework function alGetBuffer3f.
func AlGetBuffer3i ¶
AlGetBuffer3i calls the OpenAL framework function alGetBuffer3i.
func AlGetBufferf ¶
AlGetBufferf calls the OpenAL framework function alGetBufferf.
func AlGetBufferfv ¶
AlGetBufferfv calls the OpenAL framework function alGetBufferfv.
func AlGetBufferi ¶
AlGetBufferi calls the OpenAL framework function alGetBufferi.
func AlGetBufferiv ¶
AlGetBufferiv calls the OpenAL framework function alGetBufferiv.
func AlGetDouble ¶
AlGetDouble calls the OpenAL framework function alGetDouble.
func AlGetDoublev ¶
AlGetDoublev calls the OpenAL framework function alGetDoublev.
func AlGetEnumValue ¶
AlGetEnumValue calls the OpenAL framework function alGetEnumValue.
func AlGetFloat ¶
AlGetFloat calls the OpenAL framework function alGetFloat.
func AlGetFloatv ¶
AlGetFloatv calls the OpenAL framework function alGetFloatv.
func AlGetInteger ¶
AlGetInteger calls the OpenAL framework function alGetInteger.
func AlGetIntegerv ¶
AlGetIntegerv calls the OpenAL framework function alGetIntegerv.
func AlGetListener3f ¶
AlGetListener3f calls the OpenAL framework function alGetListener3f.
func AlGetListener3i ¶
AlGetListener3i calls the OpenAL framework function alGetListener3i.
func AlGetListenerf ¶
AlGetListenerf calls the OpenAL framework function alGetListenerf.
func AlGetListenerfv ¶
AlGetListenerfv calls the OpenAL framework function alGetListenerfv.
func AlGetListeneri ¶
AlGetListeneri calls the OpenAL framework function alGetListeneri.
func AlGetListeneriv ¶
AlGetListeneriv calls the OpenAL framework function alGetListeneriv.
func AlGetProcAddress ¶
AlGetProcAddress calls the OpenAL framework function alGetProcAddress.
func AlGetSource3f ¶
AlGetSource3f calls the OpenAL framework function alGetSource3f.
func AlGetSource3i ¶
AlGetSource3i calls the OpenAL framework function alGetSource3i.
func AlGetSourcef ¶
AlGetSourcef calls the OpenAL framework function alGetSourcef.
func AlGetSourcefv ¶
AlGetSourcefv calls the OpenAL framework function alGetSourcefv.
func AlGetSourcei ¶
AlGetSourcei calls the OpenAL framework function alGetSourcei.
func AlGetSourceiv ¶
AlGetSourceiv calls the OpenAL framework function alGetSourceiv.
func AlGetString ¶
AlGetString calls the OpenAL framework function alGetString.
func AlIsBuffer ¶
AlIsBuffer calls the OpenAL framework function alIsBuffer.
func AlIsEnabled ¶
AlIsEnabled calls the OpenAL framework function alIsEnabled.
func AlIsExtensionPresent ¶
AlIsExtensionPresent calls the OpenAL framework function alIsExtensionPresent.
func AlIsSource ¶
AlIsSource calls the OpenAL framework function alIsSource.
func AlListener3f ¶
AlListener3f calls the OpenAL framework function alListener3f.
func AlListener3i ¶
AlListener3i calls the OpenAL framework function alListener3i.
func AlListenerf ¶
AlListenerf calls the OpenAL framework function alListenerf.
func AlListenerfv ¶
AlListenerfv calls the OpenAL framework function alListenerfv.
func AlListeneri ¶
AlListeneri calls the OpenAL framework function alListeneri.
func AlListeneriv ¶
AlListeneriv calls the OpenAL framework function alListeneriv.
func AlSource3f ¶
AlSource3f calls the OpenAL framework function alSource3f.
func AlSource3i ¶
AlSource3i calls the OpenAL framework function alSource3i.
func AlSourcePause ¶
func AlSourcePause(sid int)
AlSourcePause calls the OpenAL framework function alSourcePause.
func AlSourcePausev ¶
AlSourcePausev calls the OpenAL framework function alSourcePausev.
func AlSourcePlay ¶
func AlSourcePlay(sid int)
AlSourcePlay calls the OpenAL framework function alSourcePlay.
func AlSourcePlayv ¶
AlSourcePlayv calls the OpenAL framework function alSourcePlayv.
func AlSourceQueueBuffers ¶
AlSourceQueueBuffers calls the OpenAL framework function alSourceQueueBuffers.
func AlSourceRewind ¶
func AlSourceRewind(sid int)
AlSourceRewind calls the OpenAL framework function alSourceRewind.
func AlSourceRewindv ¶
AlSourceRewindv calls the OpenAL framework function alSourceRewindv.
func AlSourceStop ¶
func AlSourceStop(sid int)
AlSourceStop calls the OpenAL framework function alSourceStop.
func AlSourceStopv ¶
AlSourceStopv calls the OpenAL framework function alSourceStopv.
func AlSourceUnqueueBuffers ¶
AlSourceUnqueueBuffers calls the OpenAL framework function alSourceUnqueueBuffers.
func AlSourcefv ¶
AlSourcefv calls the OpenAL framework function alSourcefv.
func AlSourceiv ¶
AlSourceiv calls the OpenAL framework function alSourceiv.
func AlSpeedOfSound ¶
func AlSpeedOfSound(value float32)
AlSpeedOfSound calls the OpenAL framework function alSpeedOfSound.
func AlcCaptureCloseDevice ¶
AlcCaptureCloseDevice calls the OpenAL framework function alcCaptureCloseDevice.
func AlcCaptureOpenDevice ¶
func AlcCaptureOpenDevice(devicename unsafe.Pointer, frequency int, format int, buffersize int) unsafe.Pointer
AlcCaptureOpenDevice calls the OpenAL framework function alcCaptureOpenDevice.
func AlcCaptureSamples ¶
AlcCaptureSamples calls the OpenAL framework function alcCaptureSamples.
func AlcCaptureStart ¶
AlcCaptureStart calls the OpenAL framework function alcCaptureStart.
func AlcCaptureStop ¶
AlcCaptureStop calls the OpenAL framework function alcCaptureStop.
func AlcCloseDevice ¶
AlcCloseDevice calls the OpenAL framework function alcCloseDevice.
func AlcCreateContext ¶
AlcCreateContext calls the OpenAL framework function alcCreateContext.
func AlcDestroyContext ¶
AlcDestroyContext calls the OpenAL framework function alcDestroyContext.
func AlcGetContextsDevice ¶
AlcGetContextsDevice calls the OpenAL framework function alcGetContextsDevice.
func AlcGetCurrentContext ¶
AlcGetCurrentContext calls the OpenAL framework function alcGetCurrentContext.
func AlcGetEnumValue ¶
AlcGetEnumValue calls the OpenAL framework function alcGetEnumValue.
func AlcGetError ¶
AlcGetError calls the OpenAL framework function alcGetError.
func AlcGetIntegerv ¶
AlcGetIntegerv calls the OpenAL framework function alcGetIntegerv.
func AlcGetProcAddress ¶
AlcGetProcAddress calls the OpenAL framework function alcGetProcAddress.
func AlcGetString ¶
AlcGetString calls the OpenAL framework function alcGetString.
func AlcIsExtensionPresent ¶
AlcIsExtensionPresent calls the OpenAL framework function alcIsExtensionPresent.
func AlcMakeContextCurrent ¶
AlcMakeContextCurrent calls the OpenAL framework function alcMakeContextCurrent.
func AlcOpenDevice ¶
AlcOpenDevice calls the OpenAL framework function alcOpenDevice.
func AlcProcessContext ¶
AlcProcessContext calls the OpenAL framework function alcProcessContext.
func AlcSuspendContext ¶
AlcSuspendContext calls the OpenAL framework function alcSuspendContext.
func AlutLoadWAVFile ¶
func AlutLoadWAVFile(data unsafe.Pointer) (result unsafe.Pointer, file int8, format int, size int, freq int)
AlutLoadWAVFile calls the OpenAL framework function alutLoadWAVFile.
Types ¶
type ALCcontext ¶ added in v0.18.0
ALCcontext is a handle for the opaque ALCcontext type.
func (ALCcontext) IsNil ¶ added in v0.18.0
func (h ALCcontext) IsNil() bool
IsNil reports whether ALCcontext is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type ALCcontext_struct ¶
type ALCcontext_struct struct{}
type ALCdevice_struct ¶
type ALCdevice_struct struct{}