package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Functions
CloseDevice closes the device and frees related resources.
DeleteBuffers deletes the buffers.
DeleteSources deletes the sources.
DeviceError returns the last known error from the current device.
Disable disables a capability.
DistanceModel returns the distance model.
DopplerFactor returns the doppler factor.
DopplerVelocity returns the doppler velocity.
Enable enables a capability.
Enabled returns true if the specified capability is enabled.
Error returns the most recently generated error.
Extensions returns the enabled extensions.
GenBuffers generates n new buffers.
GenSources generates n new sources.
ListenerGain returns the total gain applied to the final mix.
ListenerOrientation returns the orientation of the listener.
ListenerPosition returns the position of the listener.
ListenerVelocity returns the velocity of the listener.
OpenDevice opens the default audio device.
PauseSources pauses the sources.
PlaySources plays the sources.
Renderer returns the renderer information.
RewindSources rewinds the sources to their beginning positions.
SetDistanceModel sets the distance model.
SetDopplerFactor sets the doppler factor.
SetDopplerVelocity sets the doppler velocity.
SetListenerGain sets the total gain that will be applied to the final mix.
SetListenerOrientation sets the orientation of the listener.
SetListenerPosition sets the position of the listener.
SetListenerVelocity sets the velocity of the listener.
SetSpeedOfSound sets the speed of sound, its unit should be meters per second (m/s).
SpeedOfSound is the speed of sound in meters per second (m/s).
StopSources stops the sources.
Vendor returns the vendor.
Version returns the version string.
# Constants
CapabilityDistanceModel represents the capability of specifying a different distance model for each source.
Distance models.
Distance models.
Audio formats.
Audio formats.
Audio formats.
Audio formats.
A source could be in the state of initial, playing, paused or stopped.
Error returns one of these error codes.
Error returns one of these error codes.
Error returns one of these error codes.
Error returns one of these error codes.
Distance models.
Distance models.
Distance models.
Distance models.
Error returns one of these error codes.
A source could be in the state of initial, playing, paused or stopped.
A source could be in the state of initial, playing, paused or stopped.
A source could be in the state of initial, playing, paused or stopped.
# Structs
Orientation represents the angular position of an object in a right-handed Cartesian coordinate system.
# Type aliases
A buffer represents a chunk of PCM audio data that could be buffered to an audio source.
Capability represents OpenAL extension capabilities.
Source represents an individual sound source in 3D-space.
Vector represents an vector in a Cartesian coordinate system.