| 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 alscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ |
| 8 | |
| 9 | // Error returns one of these error codes. |
| 10 | const ( |
| 11 | InvalidNamescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InvalidName. = 0xA001 |
| 12 | InvalidEnumscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InvalidEnum. = 0xA002 |
| 13 | InvalidValuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InvalidValue. = 0xA003 |
| 14 | InvalidOperationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InvalidOperation. = 0xA004 |
| 15 | OutOfMemoryscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/OutOfMemory. = 0xA005 |
| 16 | ) |
| 17 | |
| 18 | // Distance models. |
| 19 | const ( |
| 20 | InverseDistancescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InverseDistance. = 0xD001 |
| 21 | InverseDistanceClampedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/InverseDistanceClamped. = 0xD002 |
| 22 | LinearDistancescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/LinearDistance. = 0xD003 |
| 23 | LinearDistanceClampedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/LinearDistanceClamped. = 0xD004 |
| 24 | ExponentDistancescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ExponentDistance. = 0xD005 |
| 25 | ExponentDistanceClampedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/ExponentDistanceClamped. = 0xD006 |
| 26 | ) |
| 27 | |
| 28 | // Global parameters. |
| 29 | const ( |
| 30 | paramDistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDistanceModel. = 0xD000 |
| 31 | paramDopplerFactorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDopplerFactor. = 0xC000 |
| 32 | paramDopplerVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramDopplerVelocity. = 0xC001 |
| 33 | paramSpeedOfSoundscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSpeedOfSound. = 0xC003 |
| 34 | paramVendorscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVendor. = 0xB001 |
| 35 | paramVersionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVersion. = 0xB002 |
| 36 | paramRendererscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramRenderer. = 0xB003 |
| 37 | paramExtensionsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramExtensions. = 0xB004 |
| 38 | ) |
| 39 | |
| 40 | // Source and listener parameters. |
| 41 | const ( |
| 42 | paramGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramGain. = 0x100A |
| 43 | paramPositionscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramPosition. = 0x1004 |
| 44 | paramVelocityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramVelocity. = 0x1006 |
| 45 | paramOrientationscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramOrientation. = 0x100F |
| 46 | paramMinGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMinGain. = 0x100D |
| 47 | paramMaxGainscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramMaxGain. = 0x100E |
| 48 | paramSourceStatescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSourceState. = 0x1010 |
| 49 | paramBuffersQueuedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBuffersQueued. = 0x1015 |
| 50 | paramBuffersProcessedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBuffersProcessed. = 0x1016 |
| 51 | paramSecOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSecOffset. = 0x1024 |
| 52 | paramSampleOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSampleOffset. = 0x1025 |
| 53 | paramByteOffsetscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramByteOffset. = 0x1026 |
| 54 | ) |
| 55 | |
| 56 | // A source could be in the state of initial, playing, paused or stopped. |
| 57 | const ( |
| 58 | Initialscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Initial. = 0x1011 |
| 59 | Playingscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Playing. = 0x1012 |
| 60 | Pausedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Paused. = 0x1013 |
| 61 | Stoppedscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Stopped. = 0x1014 |
| 62 | ) |
| 63 | |
| 64 | // Buffer parameters. |
| 65 | const ( |
| 66 | paramFreqscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramFreq. = 0x2001 |
| 67 | paramBitsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramBits. = 0x2002 |
| 68 | paramChannelsscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramChannels. = 0x2003 |
| 69 | paramSizescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/paramSize. = 0x2004 |
| 70 | ) |
| 71 | |
| 72 | // Audio formats. Buffer.BufferData accepts one of these formats as the data format. |
| 73 | const ( |
| 74 | FormatMono8scip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/FormatMono8. = 0x1100 |
| 75 | FormatMono16scip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/FormatMono16. = 0x1101 |
| 76 | FormatStereo8scip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/FormatStereo8. = 0x1102 |
| 77 | FormatStereo16scip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/FormatStereo16. = 0x1103 |
| 78 | ) |
| 79 | |
| 80 | // CapabilityDistanceModel represents the capability of specifying a different distance |
| 81 | // model for each source. |
| 82 | const CapabilityDistanceModelscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/CapabilityDistanceModel. = Capabilityscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/exp/audio/al`/Capability#(0x200) |