bbbradsmith / nsfplay

Nintendo NES sound file NSF music player
https://bbbradsmith.github.io/nsfplay/
277 stars 42 forks source link

Correctly handle tracks with no metadata. #52

Closed eatnumber1 closed 3 years ago

eatnumber1 commented 3 years ago

Previously, nsfmeta would output an array of tracks with null tracks. Instead now, it outputs empty objects for each track.

These empty objects also cause an error in nsf2flac, which this change also fixes, since it attempts to iterate once over the empty string as track metadata.