Supporting additional VSU edge cases

This commit is contained in:
2025-02-18 15:09:15 -06:00
parent 155a3aa678
commit 10505e9e98
2 changed files with 53 additions and 18 deletions
+7 -5
View File
@@ -28,8 +28,9 @@ typedef struct {
uint8_t value; /* Master output level */
/* Other state */
uint32_t clocks; /* Clocks until modification */
uint8_t reload; /* Automatic reload value */
uint32_t clocks; /* Clocks until modification */
uint8_t modmask; /* Modifications masked */
uint8_t reload; /* Automatic reload value */
} env;
/* Frequency */
@@ -359,9 +360,10 @@ struct VB {
uint8_t shift; /* Sweep shift amount */
/* Other state */
uint32_t clocks; /* Clocks until modification */
uint16_t next; /* Next frequency value */
int sample; /* Current sample index */
uint32_t clocks; /* Clocks until modification */
uint8_t modmask; /* Modifications masked */
uint16_t next; /* Next frequency value */
int sample; /* Current sample index */
} freqmod;
/* Channel 6 noise generator */