Skip to content

Commit

Permalink
Update to libopenmpt 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sagamusix committed May 25, 2020
1 parent df67b07 commit a1fe153
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/chiptune2.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ ChiptuneJsPlayer.prototype.duration = function() {

ChiptuneJsPlayer.prototype.metadata = function() {
var data = {};
var keys = Pointer_stringify(libopenmpt._openmpt_module_get_metadata_keys(this.currentPlayingNode.modulePtr)).split(';');
var keys = UTF8ToString(libopenmpt._openmpt_module_get_metadata_keys(this.currentPlayingNode.modulePtr)).split(';');
var keyNameBuffer = 0;
for (var i = 0; i < keys.length; i++) {
keyNameBuffer = libopenmpt._malloc(keys[i].length + 1);
writeAsciiToMemory(keys[i], keyNameBuffer);
data[keys[i]] = Pointer_stringify(libopenmpt._openmpt_module_get_metadata(this.currentPlayingNode.modulePtr, keyNameBuffer));
data[keys[i]] = UTF8ToString(libopenmpt._openmpt_module_get_metadata(this.currentPlayingNode.modulePtr, keyNameBuffer));
libopenmpt._free(keyNameBuffer);
}
return data;
Expand Down
5 changes: 1 addition & 4 deletions js/libopenmpt.js

Large diffs are not rendered by default.

Binary file modified js/libopenmpt.js.br
Binary file not shown.
Binary file modified js/libopenmpt.js.gz
Binary file not shown.
Binary file modified js/libopenmpt.wasm
Binary file not shown.
Binary file modified js/libopenmpt.wasm.br
Binary file not shown.
Binary file modified js/libopenmpt.wasm.gz
Binary file not shown.

0 comments on commit a1fe153

Please sign in to comment.