| 123456789101112131415161718192021222324252627282930313233 |
- function SoundManager() {
- if(arguments[0] != "__skip_ptr__") {
- this.__ptr = Polycode.SoundManager()
- }
- }
- Duktape.fin(SoundManager.prototype, function (x) {
- if (x === SoundManager.prototype) {
- return;
- }
- Polycode.SoundManager__delete(x.__ptr)
- })
- SoundManager.prototype.setListenerPosition = function(position) {
- Polycode.SoundManager_setListenerPosition(this.__ptr, position)
- }
- SoundManager.prototype.setListenerOrientation = function(orientation) {
- Polycode.SoundManager_setListenerOrientation(this.__ptr, orientation)
- }
- SoundManager.prototype.recordSound = function(rate,sampleSize) {
- return Polycode.SoundManager_recordSound(this.__ptr, rate, sampleSize)
- }
- SoundManager.prototype.Update = function() {
- Polycode.SoundManager_Update(this.__ptr)
- }
- SoundManager.prototype.setGlobalVolume = function(globalVolume) {
- Polycode.SoundManager_setGlobalVolume(this.__ptr, globalVolume)
- }
|