Skip to content

Commit

Permalink
util: play: fix: crash with soundfont created by polyphone
Browse files Browse the repository at this point in the history
Issue #84.
  • Loading branch information
moinejf committed Mar 28, 2018
1 parent 73402cc commit 5c101b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/toaudio5.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ function Audio5(i_conf) {
rates[instr] = []
for (i = 0; i < infos.length; i++) {
gen = infos[i].generator;
if (!gen.sampleID) // (empty generator!)
continue
sid = gen.sampleID.amount;
sampleRate = parser.sampleHeader[sid].sampleRate;
sample = parser.sample[sid];
Expand Down

0 comments on commit 5c101b6

Please sign in to comment.