extension-openal
extension-openal copied to clipboard
It is possible for extension to not be init by script init?
function init(self)
msg.post(".", "acquire_input_focus")
local info = openal.get_info()
print('OpenAL info:')
print('Vendor:', info.vendor)
print('Version:', info.version)
print('Renderer:', info.renderer)
print('Extensions:', info.extensions)
openal.speed_of_sound = 3300;
end
What's weird is that the example project does work
If I add the info to on update then it shows up
But it appears if I setup any listener / source on init on scripts before extension is fully setup audio doesn't work at all?
You have to interact with it first....
function init(self)
msg.post(".", "acquire_input_focus")
local res = resource.load('/assets/audio/cuties/chick/cat.wav')
local pos = go.get_position()
self.source = openal.new_source(res)
local info = openal.get_info()
print('OpenAL info:')
print('Vendor:', info.vendor)
print('Version:', info.version)
print('Renderer:', info.renderer)
print('Extensions:', info.extensions)
openal.speed_of_sound = 3300;
end