Skip to content

Commit

Permalink
prepare for automatic wave size detection - READ
Browse files Browse the repository at this point in the history
if you added a chip to Furnace, or have a pull request in progress,
edit your system definition in sysDef.cpp.
  • Loading branch information
tildearrow committed Nov 28, 2023
1 parent e593c30 commit f646e53
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 100 deletions.
8 changes: 7 additions & 1 deletion src/engine/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ struct DivSysDef {
unsigned char id_DMF;
int channels;
bool isFM, isSTD, isCompound;
// width 0: variable
// height 0: no wavetable support
unsigned short waveWidth, waveHeight;
unsigned int vgmVersion;
unsigned int sampleFormatMask;
const char* chanNames[DIV_MAX_CHANS];
Expand All @@ -307,7 +310,8 @@ struct DivSysDef {
const EffectHandlerMap preEffectHandlers;
DivSysDef(
const char* sysName, const char* sysNameJ, unsigned char fileID, unsigned char fileID_DMF, int chans,
bool isFMChip, bool isSTDChip, unsigned int vgmVer, bool compound, unsigned int formatMask, const char* desc,
bool isFMChip, bool isSTDChip, unsigned int vgmVer, bool compound, unsigned int formatMask, unsigned short waveWid, unsigned short waveHei,
const char* desc,
std::initializer_list<const char*> chNames,
std::initializer_list<const char*> chShortNames,
std::initializer_list<int> chTypes,
Expand All @@ -325,6 +329,8 @@ struct DivSysDef {
isFM(isFMChip),
isSTD(isSTDChip),
isCompound(compound),
waveWidth(waveWid),
waveHeight(waveHei),
vgmVersion(vgmVer),
sampleFormatMask(formatMask),
effectHandlers(fxHandlers_),
Expand Down
Loading

0 comments on commit f646e53

Please sign in to comment.