SDLAudioInterface.js 568 B

1234567891011121314151617181920
  1. require('Polycode/Polycode::AudioInterface')
  2. function SDLAudioInterface() {
  3. if(arguments[0] != "__skip_ptr__") {
  4. this.__ptr = Polycode.SDLAudioInterface()
  5. }
  6. }
  7. SDLAudioInterface.prototype = Object.create(Polycode::AudioInterface.prototype);
  8. Duktape.fin(SDLAudioInterface.prototype, function (x) {
  9. if (x === SDLAudioInterface.prototype) {
  10. return;
  11. }
  12. Polycode.SDLAudioInterface__delete(x.__ptr)
  13. })
  14. SDLAudioInterface.prototype.sdlCallback = function(userData,_stream,_length) {
  15. Polycode.SDLAudioInterface_sdlCallback(userData.__ptr, _stream.__ptr, _length)
  16. }