engine: github.com/g3n/engine/audio/al Index | Files

package al

import "github.com/g3n/engine/audio/al"

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

Package Files

al.go

Constants

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

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

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

func Buffer3f Uses

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

func Buffer3i Uses

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

func BufferData Uses

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

func Bufferf Uses

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

func Bufferfv Uses

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

func Bufferi Uses

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

func Bufferiv Uses

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

func CaptureCloseDevice Uses

func CaptureCloseDevice(dev *Device) error

func CaptureSamples Uses

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

func CaptureStart Uses

func CaptureStart(dev *Device)

func CaptureStop Uses

func CaptureStop(dev *Device)

func CloseDevice Uses

func CloseDevice(dev *Device) error

func CtxGetEnumValue Uses

func CtxGetEnumValue(dev *Device, enumName string) uint32

func CtxGetError Uses

func CtxGetError(dev *Device) error

func CtxGetIntegerv Uses

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

func CtxGetString Uses

func CtxGetString(dev *Device, param uint) string

func CtxIsExtensionPresent Uses

func CtxIsExtensionPresent(dev *Device, extname string) bool

func DeleteBuffers Uses

func DeleteBuffers(buffers []uint32)

func DeleteSource Uses

func DeleteSource(source uint32)

func DeleteSources Uses

func DeleteSources(sources []uint32)

func DestroyContext Uses

func DestroyContext(ctx *Context)

func Disable Uses

func Disable(capability uint)

func Enable Uses

func Enable(capability uint)

func GenBuffers Uses

func GenBuffers(n uint32) []uint32

func GenSource Uses

func GenSource() uint32

func GenSources Uses

func GenSources(sources []uint32)

func GetBoolean Uses

func GetBoolean(param uint32) bool

func GetBooleanv Uses

func GetBooleanv(param uint32, values []bool)

func GetBuffer3f Uses

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

func GetBuffer3i Uses

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

func GetBufferf Uses

func GetBufferf(buffer uint32, param uint32) float32

func GetBufferfv Uses

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

func GetBufferi Uses

func GetBufferi(buffer uint32, param uint32) int32

func GetBufferiv Uses

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

func GetDouble Uses

func GetDouble(param uint32) float64

func GetDoublev Uses

func GetDoublev(param uint32, values []float64)

func GetEnumValue Uses

func GetEnumValue(enam string) uint32

func GetError Uses

func GetError() error

func GetFloat Uses

func GetFloat(param uint32) float32

func GetFloatv Uses

func GetFloatv(param uint32, values []float32)

func GetInteger Uses

func GetInteger(param uint32) int32

func GetIntegerv Uses

func GetIntegerv(param uint32, values []int32)

func GetListener3f Uses

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

func GetListener3i Uses

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

func GetListenerf Uses

func GetListenerf(param uint32) float32

func GetListenerfv Uses

func GetListenerfv(param uint32, values []uint32)

func GetListeneri Uses

func GetListeneri(param uint32) int32

func GetListeneriv Uses

func GetListeneriv(param uint32, values []int32)

func GetSource3f Uses

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

func GetSource3i Uses

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

func GetSourcef Uses

func GetSourcef(source uint32, param uint32) float32

func GetSourcefv Uses

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

func GetSourcei Uses

func GetSourcei(source uint32, param uint32) int32

func GetSourceiv Uses

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

func GetString Uses

func GetString(param uint32) string

func IsBuffer Uses

func IsBuffer(buffer uint32) bool

func IsEnabled Uses

func IsEnabled(capability uint) bool

func IsExtensionPresent Uses

func IsExtensionPresent(extName string) bool

func IsSource Uses

func IsSource(source uint32) bool

func Listener3f Uses

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

func Listener3i Uses

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

func Listenerf Uses

func Listenerf(param uint32, value float32)

func Listenerfv Uses

func Listenerfv(param uint32, values []float32)

func Listeneri Uses

func Listeneri(param uint32, value int32)

func Listeneriv Uses

func Listeneriv(param uint32, values []int32)

func MakeContextCurrent Uses

func MakeContextCurrent(ctx *Context) error

func ProcessContext Uses

func ProcessContext(ctx *Context)

func Source3f Uses

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

func Source3i Uses

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

func SourcePause Uses

func SourcePause(source uint32)

func SourcePausev Uses

func SourcePausev(sources []uint32)

func SourcePlay Uses

func SourcePlay(source uint32)

func SourcePlayv Uses

func SourcePlayv(sources []uint32)

func SourceQueueBuffers Uses

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

func SourceRewind Uses

func SourceRewind(source uint32)

func SourceRewindv Uses

func SourceRewindv(sources []uint32)

func SourceStop Uses

func SourceStop(source uint32)

func SourceStopv Uses

func SourceStopv(sources []uint32)

func SourceUnqueueBuffers Uses

func SourceUnqueueBuffers(source uint32, n uint32, buffers []uint32)

func Sourcef Uses

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

func Sourcefv Uses

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

func Sourcei Uses

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

func Sourceiv Uses

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

func SuspendContext Uses

func SuspendContext(ctx *Context)

type Context Uses

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

func CreateContext Uses

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

type Device Uses

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

func CaptureOpenDevice Uses

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

func GetContextsDevice Uses

func GetContextsDevice(ctx *Context) *Device

func OpenDevice Uses

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

type Stats Uses

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 Uses

func GetStats() Stats

GetStats returns copy of the statistics structure

Package al imports 3 packages (graph) and is imported by 7 packages. Updated 2018-08-25. Refresh now. Tools for package owners.