MCPcopy Create free account
hub / github.com/dborth/fceugx / FDSSoundStateAdd

Function FDSSoundStateAdd

source/fceultra/fds.cpp:380–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378#define sweep_bias fdso.sweep_bias
379
380void FDSSoundStateAdd(void) {
381 AddExState(fdso.cwave, 64, 0, "WAVE");
382 AddExState(fdso.mwave, 32, 0, "MWAV");
383 AddExState(amplitude, 2, 0, "AMPL");
384 AddExState(SPSG, 0xB, 0, "SPSG");
385
386 AddExState(&cwave_freq, 4, 1, "CFRQ");
387 AddExState(&cwave_pos, 4, 1, "CPOS");
388
389 AddExState(&mod_freq, 4, 1, "MFRQ");
390 AddExState(&mod_pos, 4, 1, "MPOS");
391 AddExState(&mod_disabled, 1, 1, "MDIS");
392
393 AddExState(&sweep_bias, 4, 1, "BIAS");
394
395 AddExState(&fdso.mod_out, 4, 1, "MOUT");
396 AddExState(&fdso.sample_cache_out, 4, 1, "WOUT");
397}
398
399static DECLFR(FDSSRead) {
400 switch (A & 0xF) {

Callers 1

FDSLoadFunction · 0.85

Calls 1

AddExStateFunction · 0.85

Tested by

no test coverage detected