comparison music.html @ 70:629553bdc8aa

music: fix metadata fetching in chiptune2.js turns out the function for getting ascii strings was deprecated, and now I have to use a custom build of libopenmpt because there's no other way to do it. YAY!
author Paper <mrpapersonic@gmail.com>
date Sat, 30 Sep 2023 02:32:41 -0400
parents 2e645b936727
children
comparison
equal deleted inserted replaced
69:2e645b936727 70:629553bdc8aa
45 function setMetadata(filename) { 45 function setMetadata(filename) {
46 var metadata = player.metadata(); 46 var metadata = player.metadata();
47 if (metadata['title'] != '') 47 if (metadata['title'] != '')
48 document.getElementById('title').innerHTML = metadata['title']; 48 document.getElementById('title').innerHTML = metadata['title'];
49 else 49 else
50 document.getElementById('title').innerHTML = filename; 50 document.getElementById('title').innerHTML = filename.split(/[\\/]/).pop();
51 } 51 }
52 52
53 function pauseButton() { 53 function pauseButton() {
54 player.togglePause(); 54 player.togglePause();
55 } 55 }