| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- class "SoundManager"
- function SoundManager:SoundManager(...)
- for k,v in pairs(arg) do
- if type(v) == "table" then
- if v.__ptr ~= nil then
- arg[k] = v.__ptr
- end
- end
- end
- if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
- self.__ptr = Polycore.SoundManager(unpack(arg))
- Polycore.__ptr_lookup[self.__ptr] = self
- end
- end
- function SoundManager:setListenerPosition(position)
- local retVal = Polycore.SoundManager_setListenerPosition(self.__ptr, position.__ptr)
- end
- function SoundManager:setListenerOrientation(orientation)
- local retVal = Polycore.SoundManager_setListenerOrientation(self.__ptr, orientation.__ptr)
- end
- function SoundManager:initAL()
- local retVal = Polycore.SoundManager_initAL(self.__ptr)
- end
- function SoundManager:setGlobalVolume(globalVolume)
- local retVal = Polycore.SoundManager_setGlobalVolume(self.__ptr, globalVolume)
- end
- function SoundManager:__delete()
- Polycore.__ptr_lookup[self.__ptr] = nil
- Polycore.delete_SoundManager(self.__ptr)
- end
|