Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile/exp/audio/al: add missing generic accessors and setters #13912
Continuing the discussion started at #11298 (comment)...
Source offset setters are missing from the package and the offset must represented in float32 for more precision. Suggested APIs are below.
referenced this issue
Jan 11, 2016
i think it must be because openal is dynamically extensible, that it makes everything accessible via only a few general functions, that only vary by parameter type, and then uses another parameter to indicate the actual thing being set/read.
i did look through the spec briefly, looking for other omissions that might be sensibly added, and didn't find any more, but i guess there will be others that are effectively only present because of this extensibility.
but, the Go wrapper's current approach of hiding the parametrised calls, by sending each through a separate function, stops the dynamic extension mechanism, in that, it means any extensions would require functions to be added statically.