| 1 | // Copyright 2015 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build darwin || linux || windows |
| 6 | |
| 7 | // Package al provides OpenAL Soft bindings for Go. |
| 8 | // |
| 9 | // Calls are not safe for concurrent use. |
| 10 | // |
| 11 | // More information about OpenAL Soft is available at |
| 12 | // http://www.openal.org/documentation/openal-1.1-specification.pdf. |
| 13 | // |
| 14 | // In order to use this package on Linux desktop distros, |
| 15 | // you will need OpenAL library as an external dependency. |
| 16 | // On Ubuntu 14.04 'Trusty', you may have to install this library |
| 17 | // by running the command below. |
| 18 | // |
| 19 | // sudo apt-get install libopenal-dev |
| 20 | // |
| 21 | // When compiled for Android, this package uses OpenAL Soft. Please add its |
| 22 | // license file to the open source notices of your application. |
| 23 | // OpenAL Soft's license file could be found at |
| 24 | // http://repo.or.cz/w/openal-soft.git/blob/HEAD:/COPYING. |
| 25 | package alscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ |
| 26 | |
| 27 | // Capability represents OpenAL extension capabilities. |
| 28 | type Capabilityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Capability# int32 |
| 29 | |
| 30 | // Enable enables a capability. |
| 31 | func Enablescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Enable().(c Capabilityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Capability#) { |
| 32 | alEnablescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alEnable().(int32(c)) |
| 33 | } |
| 34 | |
| 35 | // Disable disables a capability. |
| 36 | func Disablescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Disable().(c Capabilityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Capability#) { |
| 37 | alDisablescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDisable().(int32(c)) |
| 38 | } |
| 39 | |
| 40 | // Enabled reports whether the specified capability is enabled. |
| 41 | func Enabledscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Enabled().(c Capabilityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Capability#) bool { |
| 42 | return alIsEnabledscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alIsEnabled().(int32(c)) |
| 43 | } |
| 44 | |
| 45 | // Vector represents an vector in a Cartesian coordinate system. |
| 46 | type Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# [3]float32 |
| 47 | |
| 48 | // Orientation represents the angular position of an object in a |
| 49 | // right-handed Cartesian coordinate system. |
| 50 | // A cross product between the forward and up vector returns a vector |
| 51 | // that points to the right. |
| 52 | type Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation# struct { |
| 53 | // Forward vector is the direction that the object is looking at. |
| 54 | Forwardscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Forward. Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# |
| 55 | // Up vector represents the rotation of the object. |
| 56 | Upscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Up. Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# |
| 57 | } |
| 58 | |
| 59 | func orientationFromSlicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/orientationFromSlice().(v []float32) Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation# { |
| 60 | return Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#{ |
| 61 | Forwardscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Forward.: Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{v[0], v[1], v[2]}, |
| 62 | Upscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Up.: Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{v[3], v[4], v[5]}, |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | func (v Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#) slicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#slice().() []float32 { |
| 67 | return []float32{v.Forwardscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Forward.[0], v.Forwardscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Forward.[1], v.Forwardscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Forward.[2], v.Upscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Up.[0], v.Upscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Up.[1], v.Upscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#Up.[2]} |
| 68 | } |
| 69 | |
| 70 | // Geti returns the int32 value of the given parameter. |
| 71 | func Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Geti().(param int) int32 { |
| 72 | return alGetIntegerscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetInteger().(param) |
| 73 | } |
| 74 | |
| 75 | // Getiv returns the int32 vector value of the given parameter. |
| 76 | func Getivscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getiv().(param int, v []int32) { |
| 77 | alGetIntegervscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetIntegerv().(param, v) |
| 78 | } |
| 79 | |
| 80 | // Getf returns the float32 value of the given parameter. |
| 81 | func Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getf().(param int) float32 { |
| 82 | return alGetFloatscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetFloat().(param) |
| 83 | } |
| 84 | |
| 85 | // Getfv returns the float32 vector value of the given parameter. |
| 86 | func Getfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getfv().(param int, v []float32) { |
| 87 | alGetFloatvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetFloatv().(param, v[:]) |
| 88 | } |
| 89 | |
| 90 | // Getb returns the bool value of the given parameter. |
| 91 | func Getbscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getb().(param int) bool { |
| 92 | return alGetBooleanscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetBoolean().(param) |
| 93 | } |
| 94 | |
| 95 | // Getbv returns the bool vector value of the given parameter. |
| 96 | func Getbvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getbv().(param int, v []bool) { |
| 97 | alGetBooleanvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetBooleanv().(param, v) |
| 98 | } |
| 99 | |
| 100 | // GetString returns the string value of the given parameter. |
| 101 | func GetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetString().(param int) string { |
| 102 | return alGetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetString().(param) |
| 103 | } |
| 104 | |
| 105 | // DistanceModel returns the distance model. |
| 106 | func DistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/DistanceModel().() int32 { |
| 107 | return Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Geti().(paramDistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDistanceModel.) |
| 108 | } |
| 109 | |
| 110 | // SetDistanceModel sets the distance model. |
| 111 | func SetDistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetDistanceModel().(v int32) { |
| 112 | alDistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDistanceModel().(v) |
| 113 | } |
| 114 | |
| 115 | // DopplerFactor returns the doppler factor. |
| 116 | func DopplerFactorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/DopplerFactor().() float32 { |
| 117 | return Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getf().(paramDopplerFactorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDopplerFactor.) |
| 118 | } |
| 119 | |
| 120 | // SetDopplerFactor sets the doppler factor. |
| 121 | func SetDopplerFactorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetDopplerFactor().(v float32) { |
| 122 | alDopplerFactorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDopplerFactor().(v) |
| 123 | } |
| 124 | |
| 125 | // DopplerVelocity returns the doppler velocity. |
| 126 | func DopplerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/DopplerVelocity().() float32 { |
| 127 | return Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getf().(paramDopplerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDopplerVelocity.) |
| 128 | } |
| 129 | |
| 130 | // SetDopplerVelocity sets the doppler velocity. |
| 131 | func SetDopplerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetDopplerVelocity().(v float32) { |
| 132 | alDopplerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDopplerVelocity().(v) |
| 133 | } |
| 134 | |
| 135 | // SpeedOfSound is the speed of sound in meters per second (m/s). |
| 136 | func SpeedOfSoundscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SpeedOfSound().() float32 { |
| 137 | return Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Getf().(paramSpeedOfSoundscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSpeedOfSound.) |
| 138 | } |
| 139 | |
| 140 | // SetSpeedOfSound sets the speed of sound, its unit should be meters per second (m/s). |
| 141 | func SetSpeedOfSoundscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetSpeedOfSound().(v float32) { |
| 142 | alSpeedOfSoundscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSpeedOfSound().(v) |
| 143 | } |
| 144 | |
| 145 | // Vendor returns the vendor. |
| 146 | func Vendorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vendor().() string { |
| 147 | return GetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetString().(paramVendorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVendor.) |
| 148 | } |
| 149 | |
| 150 | // Version returns the version string. |
| 151 | func Versionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Version().() string { |
| 152 | return GetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetString().(paramVersionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVersion.) |
| 153 | } |
| 154 | |
| 155 | // Renderer returns the renderer information. |
| 156 | func Rendererscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Renderer().() string { |
| 157 | return GetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetString().(paramRendererscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramRenderer.) |
| 158 | } |
| 159 | |
| 160 | // Extensions returns the enabled extensions. |
| 161 | func Extensionsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Extensions().() string { |
| 162 | return GetStringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetString().(paramExtensionsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramExtensions.) |
| 163 | } |
| 164 | |
| 165 | // Error returns the most recently generated error. |
| 166 | func Errorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Error().() int32 { |
| 167 | return alGetErrorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetError().() |
| 168 | } |
| 169 | |
| 170 | // Source represents an individual sound source in 3D-space. |
| 171 | // They take PCM data, apply modifications and then submit them to |
| 172 | // be mixed according to their spatial location. |
| 173 | type Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source# uint32 |
| 174 | |
| 175 | // GenSources generates n new sources. These sources should be deleted |
| 176 | // once they are not in use. |
| 177 | func GenSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GenSources().(n int) []Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source# { |
| 178 | return alGenSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGenSources().(n) |
| 179 | } |
| 180 | |
| 181 | // PlaySources plays the sources. |
| 182 | func PlaySourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/PlaySources().(source ...Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) { |
| 183 | alSourcePlayvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourcePlayv().(source) |
| 184 | } |
| 185 | |
| 186 | // PauseSources pauses the sources. |
| 187 | func PauseSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/PauseSources().(source ...Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) { |
| 188 | alSourcePausevscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourcePausev().(source) |
| 189 | } |
| 190 | |
| 191 | // StopSources stops the sources. |
| 192 | func StopSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/StopSources().(source ...Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) { |
| 193 | alSourceStopvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourceStopv().(source) |
| 194 | } |
| 195 | |
| 196 | // RewindSources rewinds the sources to their beginning positions. |
| 197 | func RewindSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/RewindSources().(source ...Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) { |
| 198 | alSourceRewindvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourceRewindv().(source) |
| 199 | } |
| 200 | |
| 201 | // DeleteSources deletes the sources. |
| 202 | func DeleteSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/DeleteSources().(source ...Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) { |
| 203 | alDeleteSourcesscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDeleteSources().(source) |
| 204 | } |
| 205 | |
| 206 | // Gain returns the source gain. |
| 207 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Gainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Gain().() float32 { |
| 208 | return s.Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getf().(paramGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramGain.) |
| 209 | } |
| 210 | |
| 211 | // SetGain sets the source gain. |
| 212 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetGain().(v float32) { |
| 213 | s.Setfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setf().(paramGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramGain., v) |
| 214 | } |
| 215 | |
| 216 | // MinGain returns the source's minimum gain setting. |
| 217 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) MinGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#MinGain().() float32 { |
| 218 | return s.Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getf().(paramMinGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMinGain.) |
| 219 | } |
| 220 | |
| 221 | // SetMinGain sets the source's minimum gain setting. |
| 222 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetMinGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetMinGain().(v float32) { |
| 223 | s.Setfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setf().(paramMinGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMinGain., v) |
| 224 | } |
| 225 | |
| 226 | // MaxGain returns the source's maximum gain setting. |
| 227 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) MaxGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#MaxGain().() float32 { |
| 228 | return s.Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getf().(paramMaxGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMaxGain.) |
| 229 | } |
| 230 | |
| 231 | // SetMaxGain sets the source's maximum gain setting. |
| 232 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetMaxGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetMaxGain().(v float32) { |
| 233 | s.Setfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setf().(paramMaxGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMaxGain., v) |
| 234 | } |
| 235 | |
| 236 | // Position returns the position of the source. |
| 237 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Positionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Position().() Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# { |
| 238 | v := Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{} |
| 239 | s.Getfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getfv().(paramPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramPosition., v[:]) |
| 240 | return v |
| 241 | } |
| 242 | |
| 243 | // SetPosition sets the position of the source. |
| 244 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetPosition().(v Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#) { |
| 245 | s.Setfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setfv().(paramPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramPosition., v[:]) |
| 246 | } |
| 247 | |
| 248 | // Velocity returns the source's velocity. |
| 249 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Velocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Velocity().() Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# { |
| 250 | v := Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{} |
| 251 | s.Getfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getfv().(paramVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVelocity., v[:]) |
| 252 | return v |
| 253 | } |
| 254 | |
| 255 | // SetVelocity sets the source's velocity. |
| 256 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetVelocity().(v Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#) { |
| 257 | s.Setfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setfv().(paramVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVelocity., v[:]) |
| 258 | } |
| 259 | |
| 260 | // Orientation returns the orientation of the source. |
| 261 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Orientation().() Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation# { |
| 262 | v := make([]float32, 6) |
| 263 | s.Getfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getfv().(paramOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramOrientation., v) |
| 264 | return orientationFromSlicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/orientationFromSlice().(v) |
| 265 | } |
| 266 | |
| 267 | // SetOrientation sets the orientation of the source. |
| 268 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) SetOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#SetOrientation().(o Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#) { |
| 269 | s.Setfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setfv().(paramOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramOrientation., o.slicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#slice().()) |
| 270 | } |
| 271 | |
| 272 | // State returns the playing state of the source. |
| 273 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Statescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#State().() int32 { |
| 274 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramSourceStatescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSourceState.) |
| 275 | } |
| 276 | |
| 277 | // BuffersQueued returns the number of the queued buffers. |
| 278 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) BuffersQueuedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#BuffersQueued().() int32 { |
| 279 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramBuffersQueuedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBuffersQueued.) |
| 280 | } |
| 281 | |
| 282 | // BuffersProcessed returns the number of the processed buffers. |
| 283 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) BuffersProcessedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#BuffersProcessed().() int32 { |
| 284 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramBuffersProcessedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBuffersProcessed.) |
| 285 | } |
| 286 | |
| 287 | // OffsetSeconds returns the current playback position of the source in seconds. |
| 288 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) OffsetSecondsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#OffsetSeconds().() int32 { |
| 289 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramSecOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSecOffset.) |
| 290 | } |
| 291 | |
| 292 | // OffsetSample returns the sample offset of the current playback position. |
| 293 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) OffsetSamplescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#OffsetSample().() int32 { |
| 294 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramSampleOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSampleOffset.) |
| 295 | } |
| 296 | |
| 297 | // OffsetByte returns the byte offset of the current playback position. |
| 298 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) OffsetBytescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#OffsetByte().() int32 { |
| 299 | return s.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(paramByteOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramByteOffset.) |
| 300 | } |
| 301 | |
| 302 | // Geti returns the int32 value of the given parameter. |
| 303 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Geti().(param int) int32 { |
| 304 | return alGetSourceiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetSourcei().(s, param) |
| 305 | } |
| 306 | |
| 307 | // Getf returns the float32 value of the given parameter. |
| 308 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Getfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getf().(param int) float32 { |
| 309 | return alGetSourcefscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetSourcef().(s, param) |
| 310 | } |
| 311 | |
| 312 | // Getfv returns the float32 vector value of the given parameter. |
| 313 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Getfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Getfv().(param int, v []float32) { |
| 314 | alGetSourcefvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetSourcefv().(s, param, v) |
| 315 | } |
| 316 | |
| 317 | // Seti sets an int32 value for the given parameter. |
| 318 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Setiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Seti().(param int, v int32) { |
| 319 | alSourceiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourcei().(s, param, v) |
| 320 | } |
| 321 | |
| 322 | // Setf sets a float32 value for the given parameter. |
| 323 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Setfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setf().(param int, v float32) { |
| 324 | alSourcefscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourcef().(s, param, v) |
| 325 | } |
| 326 | |
| 327 | // Setfv sets a float32 vector value for the given parameter. |
| 328 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) Setfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#Setfv().(param int, v []float32) { |
| 329 | alSourcefvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourcefv().(s, param, v) |
| 330 | } |
| 331 | |
| 332 | // QueueBuffers adds the buffers to the buffer queue. |
| 333 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) QueueBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#QueueBuffers().(buffer ...Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) { |
| 334 | alSourceQueueBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourceQueueBuffers().(s, buffer) |
| 335 | } |
| 336 | |
| 337 | // UnqueueBuffers removes the specified buffers from the buffer queue. |
| 338 | func (s Sourcescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#) UnqueueBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Source#UnqueueBuffers().(buffer ...Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) { |
| 339 | alSourceUnqueueBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alSourceUnqueueBuffers().(s, buffer) |
| 340 | } |
| 341 | |
| 342 | // ListenerGain returns the total gain applied to the final mix. |
| 343 | func ListenerGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ListenerGain().() float32 { |
| 344 | return GetListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerf().(paramGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramGain.) |
| 345 | } |
| 346 | |
| 347 | // ListenerPosition returns the position of the listener. |
| 348 | func ListenerPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ListenerPosition().() Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# { |
| 349 | v := Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{} |
| 350 | GetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerfv().(paramPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramPosition., v[:]) |
| 351 | return v |
| 352 | } |
| 353 | |
| 354 | // ListenerVelocity returns the velocity of the listener. |
| 355 | func ListenerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ListenerVelocity().() Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector# { |
| 356 | v := Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#{} |
| 357 | GetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerfv().(paramVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVelocity., v[:]) |
| 358 | return v |
| 359 | } |
| 360 | |
| 361 | // ListenerOrientation returns the orientation of the listener. |
| 362 | func ListenerOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ListenerOrientation().() Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation# { |
| 363 | v := make([]float32, 6) |
| 364 | GetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerfv().(paramOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramOrientation., v) |
| 365 | return orientationFromSlicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/orientationFromSlice().(v) |
| 366 | } |
| 367 | |
| 368 | // SetListenerGain sets the total gain that will be applied to the final mix. |
| 369 | func SetListenerGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerGain().(v float32) { |
| 370 | SetListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerf().(paramGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramGain., v) |
| 371 | } |
| 372 | |
| 373 | // SetListenerPosition sets the position of the listener. |
| 374 | func SetListenerPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerPosition().(v Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#) { |
| 375 | SetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerfv().(paramPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramPosition., v[:]) |
| 376 | } |
| 377 | |
| 378 | // SetListenerVelocity sets the velocity of the listener. |
| 379 | func SetListenerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerVelocity().(v Vectorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Vector#) { |
| 380 | SetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerfv().(paramVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVelocity., v[:]) |
| 381 | } |
| 382 | |
| 383 | // SetListenerOrientation sets the orientation of the listener. |
| 384 | func SetListenerOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerOrientation().(v Orientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#) { |
| 385 | SetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerfv().(paramOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramOrientation., v.slicescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Orientation#slice().()) |
| 386 | } |
| 387 | |
| 388 | // GetListenerf returns the float32 value of the listener parameter. |
| 389 | func GetListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerf().(param int) float32 { |
| 390 | return alGetListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetListenerf().(param) |
| 391 | } |
| 392 | |
| 393 | // GetListenerfv returns the float32 vector value of the listener parameter. |
| 394 | func GetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GetListenerfv().(param int, v []float32) { |
| 395 | alGetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGetListenerfv().(param, v) |
| 396 | } |
| 397 | |
| 398 | // SetListenerf sets the float32 value for the listener parameter. |
| 399 | func SetListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerf().(param int, v float32) { |
| 400 | alListenerfscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alListenerf().(param, v) |
| 401 | } |
| 402 | |
| 403 | // SetListenerfv sets the float32 vector value of the listener parameter. |
| 404 | func SetListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/SetListenerfv().(param int, v []float32) { |
| 405 | alListenerfvscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alListenerfv().(param, v) |
| 406 | } |
| 407 | |
| 408 | // A buffer represents a chunk of PCM audio data that could be buffered to an audio |
| 409 | // source. A single buffer could be shared between multiple sources. |
| 410 | type Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer# uint32 |
| 411 | |
| 412 | // GenBuffers generates n new buffers. The generated buffers should be deleted |
| 413 | // once they are no longer in use. |
| 414 | func GenBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/GenBuffers().(n int) []Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer# { |
| 415 | return alGenBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alGenBuffers().(n) |
| 416 | } |
| 417 | |
| 418 | // DeleteBuffers deletes the buffers. |
| 419 | func DeleteBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/DeleteBuffers().(buffer ...Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) { |
| 420 | alDeleteBuffersscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alDeleteBuffers().(buffer) |
| 421 | } |
| 422 | |
| 423 | // Geti returns the int32 value of the given parameter. |
| 424 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(param int) int32 { |
| 425 | return b.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(param) |
| 426 | } |
| 427 | |
| 428 | // Frequency returns the frequency of the buffer data in Hertz (Hz). |
| 429 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Frequencyscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Frequency().() int32 { |
| 430 | return b.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(paramFreqscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramFreq.) |
| 431 | } |
| 432 | |
| 433 | // Bits return the number of bits used to represent a sample. |
| 434 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Bitsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Bits().() int32 { |
| 435 | return b.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(paramBitsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBits.) |
| 436 | } |
| 437 | |
| 438 | // Channels return the number of the audio channels. |
| 439 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Channelsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Channels().() int32 { |
| 440 | return b.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(paramChannelsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramChannels.) |
| 441 | } |
| 442 | |
| 443 | // Size returns the size of the data. |
| 444 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Sizescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Size().() int32 { |
| 445 | return b.Getiscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Geti().(paramSizescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSize.) |
| 446 | } |
| 447 | |
| 448 | // BufferData buffers PCM data to the current buffer. |
| 449 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) BufferDatascip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#BufferData().(format uint32, data []byte, freq int32) { |
| 450 | alBufferDatascip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alBufferData().(b, format, data, freq) |
| 451 | } |
| 452 | |
| 453 | // Valid reports whether the buffer exists and is valid. |
| 454 | func (b Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#) Validscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Buffer#Valid().() bool { |
| 455 | return alIsBufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/alIsBuffer().(b) |
| 456 | } |