AudioStreamingSource.js 573 B

1234567891011121314151617181920
  1. function AudioStreamingSource(channels,freq) {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.AudioStreamingSource(channels,freq)
  4. }
  5. }
  6. Duktape.fin(AudioStreamingSource.prototype, function (x) {
  7. if (x === AudioStreamingSource.prototype) {
  8. return;
  9. }
  10. Polycode.AudioStreamingSource__delete(x.__ptr)
  11. })
  12. AudioStreamingSource.prototype.getNumChannels = function() {
  13. return Polycode.AudioStreamingSource_getNumChannels(this.__ptr)
  14. }
  15. AudioStreamingSource.prototype.getFrequency = function() {
  16. return Polycode.AudioStreamingSource_getFrequency(this.__ptr)
  17. }