kmamal / node-sdl

🎮 SDL bindings for Node.js
https://www.npmjs.com/package/@kmamal/sdl
MIT License
121 stars 11 forks source link

TypeError: Bindings.audio_clearQueue is not a function #11

Closed LmanTW closed 2 years ago

LmanTW commented 2 years ago
audioInstance.clearQueue()

/Users/lukelin/Desktop/Light Engine New/node_modules/@kmamal/sdl/src/javascript/audio/audio-instance.js:99 Bindings.audio_clearQueue(this._id) ^

TypeError: Bindings.audio_clearQueue is not a function at AudioPlaybackInstance.clearQueue (/Users/lukelin/Desktop/Light Engine New/node_modules/@kmamal/sdl/src/javascript/audio/audio-instance.js:99:12) at AUDIO.replay (/Users/lukelin/Desktop/Light Engine New/LightEngine/Function/Audio.js:109:47) at Object.callback (/Users/lukelin/Desktop/Light Engine New/test.js:30:11) at Window. (/Users/lukelin/Desktop/Light Engine New/LightEngine/Function/Keyboard.js:46:20) at Window.emit (node:events:525:35) at Window.emit (/Users/lukelin/Desktop/Light Engine New/node_modules/@kmamal/sdl/src/javascript/events/events-via-poll.js:55:9) at Timeout.handleEvents [as _onTimeout] (/Users/lukelin/Desktop/Light Engine New/node_modules/@kmamal/sdl/src/javascript/events/index.js:120:13) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

System: MacOS 10.15.7 Version: 0.3.7

kmamal commented 2 years ago

@LmanTW I forgot to export that function... It should be fixed in v0.4.1.

Please note that from v0.4.0 on I have changed the underlying renderer logic (because of this issue: https://github.com/kmamal/node-sdl/issues/10). If you notice any problems let me know.