openal

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for darwin/amd64

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlBuffer3f

func AlBuffer3f(bid int, param int, value1 float32, value2 float32, value3 float32)

AlBuffer3f calls the OpenAL framework function alBuffer3f.

func AlBuffer3i

func AlBuffer3i(bid int, param int, value1 int, value2 int, value3 int)

AlBuffer3i calls the OpenAL framework function alBuffer3i.

func AlBufferData

func AlBufferData(bid int, format int, data unsafe.Pointer, size int, freq int)

AlBufferData calls the OpenAL framework function alBufferData.

func AlBufferf

func AlBufferf(bid int, param int, value float32)

AlBufferf calls the OpenAL framework function alBufferf.

func AlBufferfv

func AlBufferfv(bid int, param int, values unsafe.Pointer)

AlBufferfv calls the OpenAL framework function alBufferfv.

func AlBufferi

func AlBufferi(bid int, param int, value int)

AlBufferi calls the OpenAL framework function alBufferi.

func AlBufferiv

func AlBufferiv(bid int, param int, values unsafe.Pointer)

AlBufferiv calls the OpenAL framework function alBufferiv.

func AlDeleteBuffers

func AlDeleteBuffers(n int, buffers unsafe.Pointer)

AlDeleteBuffers calls the OpenAL framework function alDeleteBuffers.

func AlDeleteSources

func AlDeleteSources(n int, sources unsafe.Pointer)

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

func AlGenBuffers(n int) (buffers int)

AlGenBuffers calls the OpenAL framework function alGenBuffers.

func AlGenSources

func AlGenSources(n int) (sources int)

AlGenSources calls the OpenAL framework function alGenSources.

func AlGetBoolean

func AlGetBoolean(param int) int8

AlGetBoolean calls the OpenAL framework function alGetBoolean.

func AlGetBooleanv

func AlGetBooleanv(param int) (data int8)

AlGetBooleanv calls the OpenAL framework function alGetBooleanv.

func AlGetBuffer3f

func AlGetBuffer3f(bid int, param int) (value1 float32, value2 float32, value3 float32)

AlGetBuffer3f calls the OpenAL framework function alGetBuffer3f.

func AlGetBuffer3i

func AlGetBuffer3i(bid int, param int) (value1 int, value2 int, value3 int)

AlGetBuffer3i calls the OpenAL framework function alGetBuffer3i.

func AlGetBufferf

func AlGetBufferf(bid int, param int) (value float32)

AlGetBufferf calls the OpenAL framework function alGetBufferf.

func AlGetBufferfv

func AlGetBufferfv(bid int, param int) (values float32)

AlGetBufferfv calls the OpenAL framework function alGetBufferfv.

func AlGetBufferi

func AlGetBufferi(bid int, param int) (value int)

AlGetBufferi calls the OpenAL framework function alGetBufferi.

func AlGetBufferiv

func AlGetBufferiv(bid int, param int) (values int)

AlGetBufferiv calls the OpenAL framework function alGetBufferiv.

func AlGetDouble

func AlGetDouble(param int) float64

AlGetDouble calls the OpenAL framework function alGetDouble.

func AlGetDoublev

func AlGetDoublev(param int) (data float64)

AlGetDoublev calls the OpenAL framework function alGetDoublev.

func AlGetEnumValue

func AlGetEnumValue(ename unsafe.Pointer) int

AlGetEnumValue calls the OpenAL framework function alGetEnumValue.

func AlGetError

func AlGetError() int

AlGetError calls the OpenAL framework function alGetError.

func AlGetFloat

func AlGetFloat(param int) float32

AlGetFloat calls the OpenAL framework function alGetFloat.

func AlGetFloatv

func AlGetFloatv(param int) (data float32)

AlGetFloatv calls the OpenAL framework function alGetFloatv.

func AlGetInteger

func AlGetInteger(param int) int

AlGetInteger calls the OpenAL framework function alGetInteger.

func AlGetIntegerv

func AlGetIntegerv(param int) (data int)

AlGetIntegerv calls the OpenAL framework function alGetIntegerv.

func AlGetListener3f

func AlGetListener3f(param int) (value1 float32, value2 float32, value3 float32)

AlGetListener3f calls the OpenAL framework function alGetListener3f.

func AlGetListener3i

func AlGetListener3i(param int) (value1 int, value2 int, value3 int)

AlGetListener3i calls the OpenAL framework function alGetListener3i.

func AlGetListenerf

func AlGetListenerf(param int) (value float32)

AlGetListenerf calls the OpenAL framework function alGetListenerf.

func AlGetListenerfv

func AlGetListenerfv(param int) (values float32)

AlGetListenerfv calls the OpenAL framework function alGetListenerfv.

func AlGetListeneri

func AlGetListeneri(param int) (value int)

AlGetListeneri calls the OpenAL framework function alGetListeneri.

func AlGetListeneriv

func AlGetListeneriv(param int) (values int)

AlGetListeneriv calls the OpenAL framework function alGetListeneriv.

func AlGetProcAddress

func AlGetProcAddress(fname unsafe.Pointer) unsafe.Pointer

AlGetProcAddress calls the OpenAL framework function alGetProcAddress.

func AlGetSource3f

func AlGetSource3f(sid int, param int) (value1 float32, value2 float32, value3 float32)

AlGetSource3f calls the OpenAL framework function alGetSource3f.

func AlGetSource3i

func AlGetSource3i(sid int, param int) (value1 int, value2 int, value3 int)

AlGetSource3i calls the OpenAL framework function alGetSource3i.

func AlGetSourcef

func AlGetSourcef(sid int, param int) (value float32)

AlGetSourcef calls the OpenAL framework function alGetSourcef.

func AlGetSourcefv

func AlGetSourcefv(sid int, param int) (values float32)

AlGetSourcefv calls the OpenAL framework function alGetSourcefv.

func AlGetSourcei

func AlGetSourcei(sid int, param int) (value int)

AlGetSourcei calls the OpenAL framework function alGetSourcei.

func AlGetSourceiv

func AlGetSourceiv(sid int, param int) (values int)

AlGetSourceiv calls the OpenAL framework function alGetSourceiv.

func AlGetString

func AlGetString(param int) unsafe.Pointer

AlGetString calls the OpenAL framework function alGetString.

func AlIsBuffer

func AlIsBuffer(bid int) int8

AlIsBuffer calls the OpenAL framework function alIsBuffer.

func AlIsEnabled

func AlIsEnabled(capability int) int8

AlIsEnabled calls the OpenAL framework function alIsEnabled.

func AlIsExtensionPresent

func AlIsExtensionPresent(extname unsafe.Pointer) int8

AlIsExtensionPresent calls the OpenAL framework function alIsExtensionPresent.

func AlIsSource

func AlIsSource(sid int) int8

AlIsSource calls the OpenAL framework function alIsSource.

func AlListener3f

func AlListener3f(param int, value1 float32, value2 float32, value3 float32)

AlListener3f calls the OpenAL framework function alListener3f.

func AlListener3i

func AlListener3i(param int, value1 int, value2 int, value3 int)

AlListener3i calls the OpenAL framework function alListener3i.

func AlListenerf

func AlListenerf(param int, value float32)

AlListenerf calls the OpenAL framework function alListenerf.

func AlListenerfv

func AlListenerfv(param int, values unsafe.Pointer)

AlListenerfv calls the OpenAL framework function alListenerfv.

func AlListeneri

func AlListeneri(param int, value int)

AlListeneri calls the OpenAL framework function alListeneri.

func AlListeneriv

func AlListeneriv(param int, values unsafe.Pointer)

AlListeneriv calls the OpenAL framework function alListeneriv.

func AlSource3f

func AlSource3f(sid int, param int, value1 float32, value2 float32, value3 float32)

AlSource3f calls the OpenAL framework function alSource3f.

func AlSource3i

func AlSource3i(sid int, param int, value1 int, value2 int, value3 int)

AlSource3i calls the OpenAL framework function alSource3i.

func AlSourcePause

func AlSourcePause(sid int)

AlSourcePause calls the OpenAL framework function alSourcePause.

func AlSourcePausev

func AlSourcePausev(ns int, sids unsafe.Pointer)

AlSourcePausev calls the OpenAL framework function alSourcePausev.

func AlSourcePlay

func AlSourcePlay(sid int)

AlSourcePlay calls the OpenAL framework function alSourcePlay.

func AlSourcePlayv

func AlSourcePlayv(ns int, sids unsafe.Pointer)

AlSourcePlayv calls the OpenAL framework function alSourcePlayv.

func AlSourceQueueBuffers

func AlSourceQueueBuffers(sid int, numEntries int, bids unsafe.Pointer)

AlSourceQueueBuffers calls the OpenAL framework function alSourceQueueBuffers.

func AlSourceRewind

func AlSourceRewind(sid int)

AlSourceRewind calls the OpenAL framework function alSourceRewind.

func AlSourceRewindv

func AlSourceRewindv(ns int, sids unsafe.Pointer)

AlSourceRewindv calls the OpenAL framework function alSourceRewindv.

func AlSourceStop

func AlSourceStop(sid int)

AlSourceStop calls the OpenAL framework function alSourceStop.

func AlSourceStopv

func AlSourceStopv(ns int, sids unsafe.Pointer)

AlSourceStopv calls the OpenAL framework function alSourceStopv.

func AlSourceUnqueueBuffers

func AlSourceUnqueueBuffers(sid int, numEntries int) (bids int)

AlSourceUnqueueBuffers calls the OpenAL framework function alSourceUnqueueBuffers.

func AlSourcef

func AlSourcef(sid int, param int, value float32)

AlSourcef calls the OpenAL framework function alSourcef.

func AlSourcefv

func AlSourcefv(sid int, param int, values unsafe.Pointer)

AlSourcefv calls the OpenAL framework function alSourcefv.

func AlSourcei

func AlSourcei(sid int, param int, value int)

AlSourcei calls the OpenAL framework function alSourcei.

func AlSourceiv

func AlSourceiv(sid int, param int, values unsafe.Pointer)

AlSourceiv calls the OpenAL framework function alSourceiv.

func AlSpeedOfSound

func AlSpeedOfSound(value float32)

AlSpeedOfSound calls the OpenAL framework function alSpeedOfSound.

func AlcCaptureCloseDevice

func AlcCaptureCloseDevice(device unsafe.Pointer) int8

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

func AlcCaptureSamples(device unsafe.Pointer, buffer unsafe.Pointer, samples int)

AlcCaptureSamples calls the OpenAL framework function alcCaptureSamples.

func AlcCaptureStart

func AlcCaptureStart(device unsafe.Pointer)

AlcCaptureStart calls the OpenAL framework function alcCaptureStart.

func AlcCaptureStop

func AlcCaptureStop(device unsafe.Pointer)

AlcCaptureStop calls the OpenAL framework function alcCaptureStop.

func AlcCloseDevice

func AlcCloseDevice(device unsafe.Pointer) int8

AlcCloseDevice calls the OpenAL framework function alcCloseDevice.

func AlcCreateContext

func AlcCreateContext(device unsafe.Pointer, attrlist unsafe.Pointer) unsafe.Pointer

AlcCreateContext calls the OpenAL framework function alcCreateContext.

func AlcDestroyContext

func AlcDestroyContext(context_ unsafe.Pointer)

AlcDestroyContext calls the OpenAL framework function alcDestroyContext.

func AlcGetContextsDevice

func AlcGetContextsDevice(context_ unsafe.Pointer) unsafe.Pointer

AlcGetContextsDevice calls the OpenAL framework function alcGetContextsDevice.

func AlcGetCurrentContext

func AlcGetCurrentContext() unsafe.Pointer

AlcGetCurrentContext calls the OpenAL framework function alcGetCurrentContext.

func AlcGetEnumValue

func AlcGetEnumValue(device unsafe.Pointer, enumname unsafe.Pointer) int

AlcGetEnumValue calls the OpenAL framework function alcGetEnumValue.

func AlcGetError

func AlcGetError(device unsafe.Pointer) int

AlcGetError calls the OpenAL framework function alcGetError.

func AlcGetIntegerv

func AlcGetIntegerv(device unsafe.Pointer, param int, size int) (data int)

AlcGetIntegerv calls the OpenAL framework function alcGetIntegerv.

func AlcGetProcAddress

func AlcGetProcAddress(device unsafe.Pointer, funcname unsafe.Pointer) unsafe.Pointer

AlcGetProcAddress calls the OpenAL framework function alcGetProcAddress.

func AlcGetString

func AlcGetString(device unsafe.Pointer, param int) unsafe.Pointer

AlcGetString calls the OpenAL framework function alcGetString.

func AlcIsExtensionPresent

func AlcIsExtensionPresent(device unsafe.Pointer, extname unsafe.Pointer) int8

AlcIsExtensionPresent calls the OpenAL framework function alcIsExtensionPresent.

func AlcMakeContextCurrent

func AlcMakeContextCurrent(context_ unsafe.Pointer) int8

AlcMakeContextCurrent calls the OpenAL framework function alcMakeContextCurrent.

func AlcOpenDevice

func AlcOpenDevice(devicename unsafe.Pointer) unsafe.Pointer

AlcOpenDevice calls the OpenAL framework function alcOpenDevice.

func AlcProcessContext

func AlcProcessContext(context_ unsafe.Pointer)

AlcProcessContext calls the OpenAL framework function alcProcessContext.

func AlcSuspendContext

func AlcSuspendContext(context_ unsafe.Pointer)

AlcSuspendContext calls the OpenAL framework function alcSuspendContext.

func AlutExit

func AlutExit() unsafe.Pointer

AlutExit calls the OpenAL framework function alutExit.

func AlutInit

func AlutInit(argv unsafe.Pointer) (result unsafe.Pointer, argc int)

AlutInit calls the OpenAL framework function alutInit.

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.

func AlutLoadWAVMemory

func AlutLoadWAVMemory(data unsafe.Pointer) (result unsafe.Pointer, memory int8, format int, size int, freq int)

AlutLoadWAVMemory calls the OpenAL framework function alutLoadWAVMemory.

func AlutUnloadWAV

func AlutUnloadWAV(format int, data unsafe.Pointer, size int, freq int) unsafe.Pointer

AlutUnloadWAV calls the OpenAL framework function alutUnloadWAV.

Types

type ALCcontext added in v0.18.0

type ALCcontext struct{ obj.Object }

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 added in v0.18.0

type ALCdevice struct{ obj.Object }

ALCdevice is a handle for the opaque ALCdevice type.

func (ALCdevice) IsNil added in v0.18.0

func (h ALCdevice) IsNil() bool

IsNil reports whether ALCdevice is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type ALCdevice_struct

type ALCdevice_struct struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL