Skip to content

Commit f3bf6b2

Browse files
committed
Use ptrToString for address
1 parent e6a834f commit f3bf6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio_worklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function createWasmAudioWorkletProcessor(audioParams) {
6363
var oldStackPtr = stackSave();
6464
var viewDataIdx = {{{ getHeapOffset('stackAlloc(this.maxBuffers * this.bytesPerChannel)', 'float') }}};
6565
#if WEBAUDIO_DEBUG
66-
console.log(`AudioWorklet creating ${this.maxBuffers} buffer one-time views (for a stack size of ${wwParams.stackSize} at address 0x${(viewDataIdx * 4).toString(16)})`);
66+
console.log(`AudioWorklet creating ${this.maxBuffers} buffer one-time views (for a stack size of ${wwParams.stackSize} at address ${ptrToString(viewDataIdx * 4)})`);
6767
#endif
6868
this.outputViews.length = 0;
6969
for (var n = this.maxBuffers; n > 0; n--) {

0 commit comments

Comments
 (0)