al

package
v0.0.0-...-682a2af Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package al implements the Go bindings of a subset of the functions of the OpenAL C library. The OpenAL documentation can be accessed at https://openal.org/documentation/

Index

Constants

View Source
const (
	None                    = C.AL_NONE
	False                   = C.AL_FALSE
	True                    = C.AL_TRUE
	SourceRelative          = C.AL_SOURCE_RELATIVE
	ConeInnerAngle          = C.AL_CONE_INNER_ANGLE
	ConeOuterAngle          = C.AL_CONE_OUTER_ANGLE
	Pitch                   = C.AL_PITCH
	Position                = C.AL_POSITION
	Direction               = C.AL_DIRECTION
	Velocity                = C.AL_VELOCITY
	Looping                 = C.AL_LOOPING
	Buffer                  = C.AL_BUFFER
	Gain                    = C.AL_GAIN
	MinGain                 = C.AL_MIN_GAIN
	MaxGain                 = C.AL_MAX_GAIN
	Orientation             = C.AL_ORIENTATION
	SourceState             = C.AL_SOURCE_STATE
	Initial                 = C.AL_INITIAL
	Playing                 = C.AL_PLAYING
	Paused                  = C.AL_PAUSED
	Stopped                 = C.AL_STOPPED
	BuffersQueued           = C.AL_BUFFERS_QUEUED
	BuffersProcessed        = C.AL_BUFFERS_PROCESSED
	ReferenceDistance       = C.AL_REFERENCE_DISTANCE
	RolloffFactor           = C.AL_ROLLOFF_FACTOR
	ConeOuterGain           = C.AL_CONE_OUTER_GAIN
	MaxDistance             = C.AL_MAX_DISTANCE
	SecOffset               = C.AL_SEC_OFFSET
	SampleOffset            = C.AL_SAMPLE_OFFSET
	ByteOffset              = C.AL_BYTE_OFFSET
	SourceType              = C.AL_SOURCE_TYPE
	Static                  = C.AL_STATIC
	Streaming               = C.AL_STREAMING
	Undetermined            = C.AL_UNDETERMINED
	FormatMono8             = C.AL_FORMAT_MONO8
	FormatMono16            = C.AL_FORMAT_MONO16
	FormatStereo8           = C.AL_FORMAT_STEREO8
	FormatStereo16          = C.AL_FORMAT_STEREO16
	Frequency               = C.AL_FREQUENCY
	Bits                    = C.AL_BITS
	Channels                = C.AL_CHANNELS
	Size                    = C.AL_SIZE
	Unused                  = C.AL_UNUSED
	Pending                 = C.AL_PENDING
	Processed               = C.AL_PROCESSED
	NoError                 = C.AL_NO_ERROR
	InvalidName             = C.AL_INVALID_NAME
	InvalidEnum             = C.AL_INVALID_ENUM
	InvalidValue            = C.AL_INVALID_VALUE
	InvalidOperation        = C.AL_INVALID_OPERATION
	OutOfMemory             = C.AL_OUT_OF_MEMORY
	Vendor                  = C.AL_VENDOR
	Version                 = C.AL_VERSION
	Renderer                = C.AL_RENDERER
	Extensions              = C.AL_EXTENSIONS
	DopplerFactor           = C.AL_DOPPLER_FACTOR
	DopplerVelocity         = C.AL_DOPPLER_VELOCITY
	SpeedOfSound            = C.AL_SPEED_OF_SOUND
	DistanceModel           = C.AL_DISTANCE_MODEL
	InverseDistance         = C.AL_INVERSE_DISTANCE
	InverseDistanceClamped  = C.AL_INVERSE_DISTANCE_CLAMPED
	LinearDistance          = C.AL_LINEAR_DISTANCE
	LinearDistanceClamped   = C.AL_LINEAR_DISTANCE_CLAMPED
	ExponentDistance        = C.AL_EXPONENT_DISTANCE
	ExponentDistanceClamped = C.AL_EXPONENT_DISTANCE_CLAMPED
)

AL constants

View Source
const (
	AttributesSize                = C.ALC_ATTRIBUTES_SIZE
	AllAttributes                 = C.ALC_ALL_ATTRIBUTES
	DefaultDeviceSpecifier        = C.ALC_DEFAULT_DEVICE_SPECIFIER
	DeviceSpecifier               = C.ALC_DEVICE_SPECIFIER
	CtxExtensions                 = C.ALC_EXTENSIONS
	ExtCapture                    = C.ALC_EXT_CAPTURE
	CaptureDeviceSpecifier        = C.ALC_CAPTURE_DEVICE_SPECIFIER
	CaptureDefaultDeviceSpecifier = C.ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER
	CtxCaptureSamples             = C.ALC_CAPTURE_SAMPLES
	EnumerateAllExt               = C.ALC_ENUMERATE_ALL_EXT
	DefaultAllDevicesSpecifier    = C.ALC_DEFAULT_ALL_DEVICES_SPECIFIER
	AllDevicesSpecifier           = C.ALC_ALL_DEVICES_SPECIFIER
)

ALC constants

View Source
const (
	EFX_MAJOR_VERSION                       = C.ALC_EFX_MAJOR_VERSION
	EFX_MINOR_VERSION                       = C.ALC_EFX_MINOR_VERSION
	MAX_AUXILIARY_SENDS                     = C.ALC_MAX_AUXILIARY_SENDS
	METERS_PER_UNIT                         = C.AL_METERS_PER_UNIT
	AL_DIRECT_FILTER                        = C.AL_DIRECT_FILTER
	AL_AUXILIARY_SEND_FILTER                = C.AL_AUXILIARY_SEND_FILTER
	AL_AIR_ABSORPTION_FACTOR                = C.AL_AIR_ABSORPTION_FACTOR
	AL_ROOM_ROLLOFF_FACTOR                  = C.AL_ROOM_ROLLOFF_FACTOR
	AL_CONE_OUTER_GAINHF                    = C.AL_CONE_OUTER_GAINHF
	AL_DIRECT_FILTER_GAINHF_AUTO            = C.AL_DIRECT_FILTER_GAINHF_AUTO
	AL_AUXILIARY_SEND_FILTER_GAIN_AUTO      = C.AL_AUXILIARY_SEND_FILTER_GAIN_AUTO
	AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO    = C.AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO
	AL_REVERB_DENSITY                       = C.AL_REVERB_DENSITY
	AL_REVERB_DIFFUSION                     = C.AL_REVERB_DIFFUSION
	AL_REVERB_GAIN                          = C.AL_REVERB_GAIN
	AL_REVERB_GAINHF                        = C.AL_REVERB_GAINHF
	AL_REVERB_DECAY_TIME                    = C.AL_REVERB_DECAY_TIME
	AL_REVERB_DECAY_HFRATIO                 = C.AL_REVERB_DECAY_HFRATIO
	AL_REVERB_REFLECTIONS_GAIN              = C.AL_REVERB_REFLECTIONS_GAIN
	AL_REVERB_REFLECTIONS_DELAY             = C.AL_REVERB_REFLECTIONS_DELAY
	AL_REVERB_LATE_REVERB_GAIN              = C.AL_REVERB_LATE_REVERB_GAIN
	AL_REVERB_LATE_REVERB_DELAY             = C.AL_REVERB_LATE_REVERB_DELAY
	AL_REVERB_AIR_ABSORPTION_GAINHF         = C.AL_REVERB_AIR_ABSORPTION_GAINHF
	AL_REVERB_ROOM_ROLLOFF_FACTOR           = C.AL_REVERB_ROOM_ROLLOFF_FACTOR
	AL_REVERB_DECAY_HFLIMIT                 = C.AL_REVERB_DECAY_HFLIMIT
	AL_EAXREVERB_DENSITY                    = C.AL_EAXREVERB_DENSITY
	AL_EAXREVERB_DIFFUSION                  = C.AL_EAXREVERB_DIFFUSION
	AL_EAXREVERB_GAIN                       = C.AL_EAXREVERB_GAIN
	AL_EAXREVERB_GAINHF                     = C.AL_EAXREVERB_GAINHF
	AL_EAXREVERB_GAINLF                     = C.AL_EAXREVERB_GAINLF
	AL_EAXREVERB_DECAY_TIME                 = C.AL_EAXREVERB_DECAY_TIME
	AL_EAXREVERB_DECAY_HFRATIO              = C.AL_EAXREVERB_DECAY_HFRATIO
	AL_EAXREVERB_DECAY_LFRATIO              = C.AL_EAXREVERB_DECAY_LFRATIO
	AL_EAXREVERB_REFLECTIONS_GAIN           = C.AL_EAXREVERB_REFLECTIONS_GAIN
	AL_EAXREVERB_REFLECTIONS_DELAY          = C.AL_EAXREVERB_REFLECTIONS_DELAY
	AL_EAXREVERB_REFLECTIONS_PAN            = C.AL_EAXREVERB_REFLECTIONS_PAN
	AL_EAXREVERB_LATE_REVERB_GAIN           = C.AL_EAXREVERB_LATE_REVERB_GAIN
	AL_EAXREVERB_LATE_REVERB_DELAY          = C.AL_EAXREVERB_LATE_REVERB_DELAY
	AL_EAXREVERB_LATE_REVERB_PAN            = C.AL_EAXREVERB_LATE_REVERB_PAN
	AL_EAXREVERB_ECHO_TIME                  = C.AL_EAXREVERB_ECHO_TIME
	AL_EAXREVERB_ECHO_DEPTH                 = C.AL_EAXREVERB_ECHO_DEPTH
	AL_EAXREVERB_MODULATION_TIME            = C.AL_EAXREVERB_MODULATION_TIME
	AL_EAXREVERB_MODULATION_DEPTH           = C.AL_EAXREVERB_MODULATION_DEPTH
	AL_EAXREVERB_AIR_ABSORPTION_GAINHF      = C.AL_EAXREVERB_AIR_ABSORPTION_GAINHF
	AL_EAXREVERB_HFREFERENCE                = C.AL_EAXREVERB_HFREFERENCE
	AL_EAXREVERB_LFREFERENCE                = C.AL_EAXREVERB_LFREFERENCE
	AL_EAXREVERB_ROOM_ROLLOFF_FACTOR        = C.AL_EAXREVERB_ROOM_ROLLOFF_FACTOR
	AL_EAXREVERB_DECAY_HFLIMIT              = C.AL_EAXREVERB_DECAY_HFLIMIT
	AL_CHORUS_WAVEFORM                      = C.AL_CHORUS_WAVEFORM
	AL_CHORUS_PHASE                         = C.AL_CHORUS_PHASE
	AL_CHORUS_RATE                          = C.AL_CHORUS_RATE
	AL_CHORUS_DEPTH                         = C.AL_CHORUS_DEPTH
	AL_CHORUS_FEEDBACK                      = C.AL_CHORUS_FEEDBACK
	AL_CHORUS_DELAY                         = C.AL_CHORUS_DELAY
	AL_DISTORTION_EDGE                      = C.AL_DISTORTION_EDGE
	AL_DISTORTION_GAIN                      = C.AL_DISTORTION_GAIN
	AL_DISTORTION_LOWPASS_CUTOFF            = C.AL_DISTORTION_LOWPASS_CUTOFF
	AL_DISTORTION_EQCENTER                  = C.AL_DISTORTION_EQCENTER
	AL_DISTORTION_EQBANDWIDTH               = C.AL_DISTORTION_EQBANDWIDTH
	AL_ECHO_DELAY                           = C.AL_ECHO_DELAY
	AL_ECHO_LRDELAY                         = C.AL_ECHO_LRDELAY
	AL_ECHO_DAMPING                         = C.AL_ECHO_DAMPING
	AL_ECHO_FEEDBACK                        = C.AL_ECHO_FEEDBACK
	AL_ECHO_SPREAD                          = C.AL_ECHO_SPREAD
	AL_FLANGER_WAVEFORM                     = C.AL_FLANGER_WAVEFORM
	AL_FLANGER_PHASE                        = C.AL_FLANGER_PHASE
	AL_FLANGER_RATE                         = C.AL_FLANGER_RATE
	AL_FLANGER_DEPTH                        = C.AL_FLANGER_DEPTH
	AL_FLANGER_FEEDBACK                     = C.AL_FLANGER_FEEDBACK
	AL_FLANGER_DELAY                        = C.AL_FLANGER_DELAY
	AL_FREQUENCY_SHIFTER_FREQUENCY          = C.AL_FREQUENCY_SHIFTER_FREQUENCY
	AL_FREQUENCY_SHIFTER_LEFT_DIRECTION     = C.AL_FREQUENCY_SHIFTER_LEFT_DIRECTION
	AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION    = C.AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION
	AL_VOCAL_MORPHER_PHONEMEA               = C.AL_VOCAL_MORPHER_PHONEMEA
	AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING = C.AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING
	AL_VOCAL_MORPHER_PHONEMEB               = C.AL_VOCAL_MORPHER_PHONEMEB
	AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING = C.AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING
	AL_VOCAL_MORPHER_WAVEFORM               = C.AL_VOCAL_MORPHER_WAVEFORM
	AL_VOCAL_MORPHER_RATE                   = C.AL_VOCAL_MORPHER_RATE
	AL_PITCH_SHIFTER_COARSE_TUNE            = C.AL_PITCH_SHIFTER_COARSE_TUNE
	AL_PITCH_SHIFTER_FINE_TUNE              = C.AL_PITCH_SHIFTER_FINE_TUNE
	AL_RING_MODULATOR_FREQUENCY             = C.AL_RING_MODULATOR_FREQUENCY
	AL_RING_MODULATOR_HIGHPASS_CUTOFF       = C.AL_RING_MODULATOR_HIGHPASS_CUTOFF
	AL_RING_MODULATOR_WAVEFORM              = C.AL_RING_MODULATOR_WAVEFORM
	AL_AUTOWAH_ATTACK_TIME                  = C.AL_AUTOWAH_ATTACK_TIME
	AL_AUTOWAH_RELEASE_TIME                 = C.AL_AUTOWAH_RELEASE_TIME
	AL_AUTOWAH_RESONANCE                    = C.AL_AUTOWAH_RESONANCE
	AL_AUTOWAH_PEAK_GAIN                    = C.AL_AUTOWAH_PEAK_GAIN
	AL_COMPRESSOR_ONOFF                     = C.AL_COMPRESSOR_ONOFF
	AL_EQUALIZER_LOW_GAIN                   = C.AL_EQUALIZER_LOW_GAIN
	AL_EQUALIZER_LOW_CUTOFF                 = C.AL_EQUALIZER_LOW_CUTOFF
	AL_EQUALIZER_MID1_GAIN                  = C.AL_EQUALIZER_MID1_GAIN
	AL_EQUALIZER_MID1_CENTER                = C.AL_EQUALIZER_MID1_CENTER
	AL_EQUALIZER_MID1_WIDTH                 = C.AL_EQUALIZER_MID1_WIDTH
	AL_EQUALIZER_MID2_GAIN                  = C.AL_EQUALIZER_MID2_GAIN
	AL_EQUALIZER_MID2_CENTER                = C.AL_EQUALIZER_MID2_CENTER
	AL_EQUALIZER_MID2_WIDTH                 = C.AL_EQUALIZER_MID2_WIDTH
	AL_EQUALIZER_HIGH_GAIN                  = C.AL_EQUALIZER_HIGH_GAIN
	AL_EQUALIZER_HIGH_CUTOFF                = C.AL_EQUALIZER_HIGH_CUTOFF
	AL_EFFECT_FIRST_PARAMETER               = C.AL_EFFECT_FIRST_PARAMETER
	AL_EFFECT_LAST_PARAMETER                = C.AL_EFFECT_LAST_PARAMETER
	AL_EFFECT_TYPE                          = C.AL_EFFECT_TYPE
	AL_EFFECT_NULL                          = C.AL_EFFECT_NULL
	AL_EFFECT_REVERB                        = C.AL_EFFECT_REVERB
	AL_EFFECT_CHORUS                        = C.AL_EFFECT_CHORUS
	AL_EFFECT_DISTORTION                    = C.AL_EFFECT_DISTORTION
	AL_EFFECT_ECHO                          = C.AL_EFFECT_ECHO
	AL_EFFECT_FLANGER                       = C.AL_EFFECT_FLANGER
	AL_EFFECT_FREQUENCY_SHIFTER             = C.AL_EFFECT_FREQUENCY_SHIFTER
	AL_EFFECT_VOCAL_MORPHER                 = C.AL_EFFECT_VOCAL_MORPHER
	AL_EFFECT_PITCH_SHIFTER                 = C.AL_EFFECT_PITCH_SHIFTER
	AL_EFFECT_RING_MODULATOR                = C.AL_EFFECT_RING_MODULATOR
	AL_EFFECT_AUTOWAH                       = C.AL_EFFECT_AUTOWAH
	AL_EFFECT_COMPRESSOR                    = C.AL_EFFECT_COMPRESSOR
	AL_EFFECT_EQUALIZER                     = C.AL_EFFECT_EQUALIZER
	AL_EFFECT_EAXREVERB                     = C.AL_EFFECT_EAXREVERB
	AL_EFFECTSLOT_EFFECT                    = C.AL_EFFECTSLOT_EFFECT
	AL_EFFECTSLOT_GAIN                      = C.AL_EFFECTSLOT_GAIN
	AL_EFFECTSLOT_AUXILIARY_SEND_AUTO       = C.AL_EFFECTSLOT_AUXILIARY_SEND_AUTO
	AL_EFFECTSLOT_NULL                      = C.AL_EFFECTSLOT_NULL
	AL_LOWPASS_GAIN                         = C.AL_LOWPASS_GAIN
	AL_LOWPASS_GAINHF                       = C.AL_LOWPASS_GAINHF
	AL_HIGHPASS_GAIN                        = C.AL_HIGHPASS_GAIN
	AL_HIGHPASS_GAINLF                      = C.AL_HIGHPASS_GAINLF
	AL_BANDPASS_GAIN                        = C.AL_BANDPASS_GAIN
	AL_BANDPASS_GAINLF                      = C.AL_BANDPASS_GAINLF
	AL_BANDPASS_GAINHF                      = C.AL_BANDPASS_GAINHF
	AL_FILTER_FIRST_PARAMETER               = C.AL_FILTER_FIRST_PARAMETER
	AL_FILTER_LAST_PARAMETER                = C.AL_FILTER_LAST_PARAMETER
	AL_FILTER_TYPE                          = C.AL_FILTER_TYPE
	AL_FILTER_NULL                          = C.AL_FILTER_NULL
	AL_FILTER_LOWPASS                       = C.AL_FILTER_LOWPASS
	AL_FILTER_HIGHPASS                      = C.AL_FILTER_HIGHPASS
	AL_FILTER_BANDPASS                      = C.AL_FILTER_BANDPASS
)

AL EFX extension constants

Variables

This section is empty.

Functions

func Buffer3f

func Buffer3f(buffer uint32, param uint32, value1, value2, value3 float32)

func Buffer3i

func Buffer3i(buffer uint32, param uint32, value1, value2, value3 int32)

func BufferData

func BufferData(buffer uint32, format uint32, data unsafe.Pointer, size uint32, freq uint32)

func Bufferf

func Bufferf(buffer uint32, param uint32, value float32)

func Bufferfv

func Bufferfv(buffer uint32, param uint32, values []float32)

func Bufferi

func Bufferi(buffer uint32, param uint32, value int32)

func Bufferiv

func Bufferiv(buffer uint32, param uint32, values []int32)

func CaptureCloseDevice

func CaptureCloseDevice(dev *Device) error

func CaptureSamples

func CaptureSamples(dev *Device, buffer []byte, nsamples uint)

func CaptureStart

func CaptureStart(dev *Device)

func CaptureStop

func CaptureStop(dev *Device)

func CloseDevice

func CloseDevice(dev *Device) error

func CtxGetEnumValue

func CtxGetEnumValue(dev *Device, enumName string) uint32

func CtxGetError

func CtxGetError(dev *Device) error

func CtxGetIntegerv

func CtxGetIntegerv(dev *Device, param uint32, values []int32)

func CtxGetString

func CtxGetString(dev *Device, param uint) string

func CtxIsExtensionPresent

func CtxIsExtensionPresent(dev *Device, extname string) bool

func DeleteBuffers

func DeleteBuffers(buffers []uint32)

func DeleteSource

func DeleteSource(source uint32)

func DeleteSources

func DeleteSources(sources []uint32)

func DestroyContext

func DestroyContext(ctx *Context)

func Disable

func Disable(capability uint)

func Enable

func Enable(capability uint)

func GenBuffers

func GenBuffers(n uint32) []uint32

func GenSource

func GenSource() uint32

func GenSources

func GenSources(sources []uint32)

func GetBoolean

func GetBoolean(param uint32) bool

func GetBooleanv

func GetBooleanv(param uint32, values []bool)

func GetBuffer3f

func GetBuffer3f(buffer uint32, param uint32) (v1 float32, v2 float32, v3 float32)

func GetBuffer3i

func GetBuffer3i(buffer uint32, param uint32) (int32, int32, int32)

func GetBufferf

func GetBufferf(buffer uint32, param uint32) float32

func GetBufferfv

func GetBufferfv(buffer uint32, param uint32, values []float32)

func GetBufferi

func GetBufferi(buffer uint32, param uint32) int32

func GetBufferiv

func GetBufferiv(buffer uint32, param uint32, values []int32)

func GetDouble

func GetDouble(param uint32) float64

func GetDoublev

func GetDoublev(param uint32, values []float64)

func GetEnumValue

func GetEnumValue(enam string) uint32

func GetError

func GetError() error

func GetFloat

func GetFloat(param uint32) float32

func GetFloatv

func GetFloatv(param uint32, values []float32)

func GetInteger

func GetInteger(param uint32) int32

func GetIntegerv

func GetIntegerv(param uint32, values []int32)

func GetListener3f

func GetListener3f(param uint32) (float32, float32, float32)

func GetListener3i

func GetListener3i(param uint32) (int32, int32, int32)

func GetListenerf

func GetListenerf(param uint32) float32

func GetListenerfv

func GetListenerfv(param uint32, values []float32)

func GetListeneri

func GetListeneri(param uint32) int32

func GetListeneriv

func GetListeneriv(param uint32, values []int32)

func GetSource3f

func GetSource3f(source uint32, param uint32) (float32, float32, float32)

func GetSource3i

func GetSource3i(source uint32, param uint32) (int32, int32, int32)

func GetSourcef

func GetSourcef(source uint32, param uint32) float32

func GetSourcefv

func GetSourcefv(source uint32, param uint32, values []float32)

func GetSourcei

func GetSourcei(source uint32, param uint32) int32

func GetSourceiv

func GetSourceiv(source uint32, param uint32, values []int32)

func GetString

func GetString(param uint32) string

func IsBuffer

func IsBuffer(buffer uint32) bool

func IsEnabled

func IsEnabled(capability uint) bool

func IsExtensionPresent

func IsExtensionPresent(extName string) bool

func IsSource

func IsSource(source uint32) bool

func Listener3f

func Listener3f(param uint32, value1, value2, value3 float32)

func Listener3i

func Listener3i(param uint32, value1, value2, value3 int32)

func Listenerf

func Listenerf(param uint32, value float32)

func Listenerfv

func Listenerfv(param uint32, values []float32)

func Listeneri

func Listeneri(param uint32, value int32)

func Listeneriv

func Listeneriv(param uint32, values []int32)

func MakeContextCurrent

func MakeContextCurrent(ctx *Context) error

func ProcessContext

func ProcessContext(ctx *Context)

func Source3f

func Source3f(source uint32, param uint32, value1, value2, value3 float32)

func Source3i

func Source3i(source uint32, param uint32, value1, value2, value3 int32)

func SourcePause

func SourcePause(source uint32)

func SourcePausev

func SourcePausev(sources []uint32)

func SourcePlay

func SourcePlay(source uint32)

func SourcePlayv

func SourcePlayv(sources []uint32)

func SourceQueueBuffers

func SourceQueueBuffers(source uint32, buffers ...uint32)

func SourceRewind

func SourceRewind(source uint32)

func SourceRewindv

func SourceRewindv(sources []uint32)

func SourceStop

func SourceStop(source uint32)

func SourceStopv

func SourceStopv(sources []uint32)

func SourceUnqueueBuffers

func SourceUnqueueBuffers(source uint32, n uint32)

func Sourcef

func Sourcef(source uint32, param uint32, value float32)

func Sourcefv

func Sourcefv(source uint32, param uint32, values []float32)

func Sourcei

func Sourcei(source uint32, param uint32, value int32)

func Sourceiv

func Sourceiv(source uint32, param uint32, values []int32)

func SuspendContext

func SuspendContext(ctx *Context)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func CreateContext

func CreateContext(dev *Device, attrlist []int) (*Context, error)

type Device

type Device struct {
	// contains filtered or unexported fields
}

func CaptureOpenDevice

func CaptureOpenDevice(devname string, frequency uint32, format uint32, buffersize uint32) (*Device, error)

func GetContextsDevice

func GetContextsDevice(ctx *Context) *Device

func OpenDevice

func OpenDevice(name string) (*Device, error)

type Stats

type Stats struct {
	Sources  int   // Current number of sources
	Buffers  int   // Current number of buffers
	CgoCalls int64 // Accumulated cgo calls
	Callocs  int   // Current number of C allocations
}

Statistics

func GetStats

func GetStats() Stats

GetStats returns copy of the statistics structure

Jump to

Keyboard shortcuts

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