Documentation ¶
Index ¶
- func CBool(t bool) C.ALCboolean
- func GetString(device Device, param Enum) string
- func GoBool(t C.ALCboolean) bool
- func MakeContextCurrent(c Context) bool
- type Boolean
- type Byte
- type CaptureDevice
- type Char
- type Context
- type Device
- type Double
- type Enum
- type Float
- type Int
- type Short
- type Sizei
- type Ubyte
- type Uint
- type Ushort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeContextCurrent ¶
MakeContextCurrent makes a specified context the current context.
Types ¶
type CaptureDevice ¶
type CaptureDevice uintptr
func GoCaptureDevice ¶
func GoCaptureDevice(cCaptureDevice *C.ALCdevice) CaptureDevice
GoCaptureDevice : C capture device to Go capture device.
func OpenCaptureDevice ¶
func OpenCaptureDevice(deviceName string, frequency Int, format Enum, bufferSize Sizei) CaptureDevice
func (CaptureDevice) CCaptureDevice ¶
func (d CaptureDevice) CCaptureDevice() *C.ALCdevice
CCaptureDevice : Go capture device to C capture device.
func (CaptureDevice) Close ¶
func (d CaptureDevice) Close() bool
func (CaptureDevice) Samples ¶
func (d CaptureDevice) Samples(buffer []byte, samples Sizei)
func (CaptureDevice) Start ¶
func (d CaptureDevice) Start()
func (CaptureDevice) Stop ¶
func (d CaptureDevice) Stop()
type Context ¶
type Context uintptr
Context represents an OpenAL context.
func CreateContext ¶
CreateContext creates a context using a specified device.
func CreateDefaultContext ¶
CreateDefaultContext creates a context using a specified device and default attributes.
func GetCurrentContext ¶
func GetCurrentContext() Context
GetCurrentContext retrieves the current context.
func GoContext ¶
func GoContext(cContext *C.ALCcontext) Context
GoContext : C context to Go context.
func (Context) CContext ¶
func (c Context) CContext() *C.ALCcontext
CContext : Go context to C context.
type Device ¶
type Device uintptr
Device represents an OpenAL device.
func OpenDefaultDevice ¶
func OpenDefaultDevice() Device
OpenDefaultDevice opens the default device.
func (Device) IsExtensionPresent ¶
type Enum ¶
type Enum int32
Enum represents an enumerated 32-bit value.
const ( // NoError indicates there is not currently an error. NoError Enum = C.ALC_NO_ERROR // InvalidDevice indicates a bad device was passed to an OpenAL function. InvalidDevice Enum = C.ALC_INVALID_DEVICE // InvalidContext indicates a bad context was passed to an OpenAL function. InvalidContext Enum = C.ALC_INVALID_CONTEXT // InvalidEnum indicates an unknown enum value was passed to an OpenAL function. InvalidEnum Enum = C.ALC_INVALID_ENUM // InvalidValue indicate an invalid value was passed to an OpenAL function. InvalidValue Enum = C.ALC_INVALID_VALUE // OutOfMemory indicates the requested operation resulted in OpenAL running out of memory. OutOfMemory Enum = C.ALC_OUT_OF_MEMORY )
const ( DefaultDeviceSpecifier Enum = C.ALC_DEFAULT_DEVICE_SPECIFIER DeviceSpecifier Enum = C.ALC_DEVICE_SPECIFIER Extensions Enum = C.ALC_EXTENSIONS CaptureDeviceSpecifier Enum = C.ALC_CAPTURE_DEVICE_SPECIFIER CaptureDefaultDeviceSpecifier Enum = C.ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER )
const ( MajorVersion Enum = C.ALC_MAJOR_VERSION MinorVersion Enum = C.ALC_MINOR_VERSION AttributesSize Enum = C.ALC_ATTRIBUTES_SIZE AllAttributes Enum = C.ALC_ALL_ATTRIBUTES )
type Int ¶
type Int int32
Int represents a signed 32-bit 2's complement integer.
const ( // Frequency represents output frequency. It is specified in <int> Hz. Frequency Int = C.ALC_FREQUENCY // Refresh represents update rate of context processing. It is specified in <int> Hz. Refresh Int = C.ALC_REFRESH // Sync is a flag indicating a synchronous context. It is specified using a bool value. Sync Int = C.ALC_SYNC // MonoSources represents the requested number of mono sources. It is specified by <int> number of requested mono (3D) sources. MonoSources Int = C.ALC_MONO_SOURCES // StereoSources represents the requested number of stereo sources. It is specified by <int> number of requested stereo sources. StereoSources Int = C.ALC_STEREO_SOURCES )