SoundManager.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. function SoundManager() {
  2. }
  3. SoundManager.prototype.setListenerPosition = function(position) {
  4. Polycode.SoundManager_setListenerPosition(this.__ptr, position)
  5. }
  6. SoundManager.prototype.setListenerOrientation = function(orientation,upVector) {
  7. Polycode.SoundManager_setListenerOrientation(this.__ptr, orientation,upVector)
  8. }
  9. SoundManager.prototype.recordSound = function(rate,sampleSize) {
  10. Polycode.SoundManager_recordSound(this.__ptr, rate,sampleSize)
  11. }
  12. SoundManager.prototype.stopRecording = function(generateFloatBuffer) {
  13. Polycode.SoundManager_stopRecording(this.__ptr, generateFloatBuffer)
  14. }
  15. SoundManager.prototype.setAudioInterface = function(audioInterface) {
  16. Polycode.SoundManager_setAudioInterface(this.__ptr, audioInterface)
  17. }
  18. SoundManager.prototype.Update = function() {
  19. Polycode.SoundManager_Update(this.__ptr)
  20. }
  21. SoundManager.prototype.setGlobalVolume = function(globalVolume) {
  22. Polycode.SoundManager_setGlobalVolume(this.__ptr, globalVolume)
  23. }
  24. SoundManager.prototype.registerSound = function(sound) {
  25. Polycode.SoundManager_registerSound(this.__ptr, sound)
  26. }
  27. SoundManager.prototype.unregisterSound = function(sound) {
  28. Polycode.SoundManager_unregisterSound(this.__ptr, sound)
  29. }