Mercurial > hg > dmlib
comparison xm2jss.c @ 202:85614db5f577
Warn about invalid instruments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 07 Oct 2012 08:53:51 +0300 |
parents | 50f55def91e5 |
children | 245b15cd1919 |
comparison
equal
deleted
inserted
replaced
201:844f38cbff65 | 202:85614db5f577 |
---|---|
873 { | 873 { |
874 char effect; | 874 char effect; |
875 | 875 |
876 if (n->instrument >= 0 && n->instrument <= jsetMaxInstruments) | 876 if (n->instrument >= 0 && n->instrument <= jsetMaxInstruments) |
877 n->instrument = mapExtInstruments[n->instrument]; | 877 n->instrument = mapExtInstruments[n->instrument]; |
878 | |
879 if (n->instrument != jsetNotSet && r->extInstruments[n->instrument] == NULL) | |
880 dmError("Non-existing instrument used #%d.\n", n->instrument); | |
878 | 881 |
879 JMPGETEFFECT(effect, n->effect); | 882 JMPGETEFFECT(effect, n->effect); |
880 | 883 |
881 switch (effect) | 884 switch (effect) |
882 { | 885 { |