Merge branch 'master' into ymf278b
This commit is contained in:
commit
da1225c933
12 changed files with 1899 additions and 1497 deletions
|
|
@ -1501,6 +1501,12 @@ void DivInstrument::readFeatureMA(SafeReader& reader, short version) {
|
|||
|
||||
unsigned short macroHeaderLen=reader.readS();
|
||||
|
||||
if (macroHeaderLen==0) {
|
||||
logW("invalid macro header length!");
|
||||
READ_FEAT_END;
|
||||
return;
|
||||
}
|
||||
|
||||
DivInstrumentMacro* target=&std.volMacro;
|
||||
|
||||
while (reader.tell()<endOfFeat) {
|
||||
|
|
@ -1727,6 +1733,12 @@ void DivInstrument::readFeatureOx(SafeReader& reader, int op, short version) {
|
|||
|
||||
unsigned short macroHeaderLen=reader.readS();
|
||||
|
||||
if (macroHeaderLen==0) {
|
||||
logW("invalid macro header length!");
|
||||
READ_FEAT_END;
|
||||
return;
|
||||
}
|
||||
|
||||
DivInstrumentMacro* target=&std.opMacros[op].amMacro;
|
||||
|
||||
while (reader.tell()<endOfFeat) {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ void DivPlatformDave::acquire(short** buf, size_t len) {
|
|||
chan[i].dacSample=-1;
|
||||
writeControl=true;
|
||||
chan[0].writeVol=true;
|
||||
chan[i].dacPeriod-=rate;
|
||||
continue;
|
||||
}
|
||||
signed char dacData=(s->data8[chan[i].dacPos]*chan[i].outVol)>>8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue