aboutsummaryrefslogtreecommitdiff
path: root/source/apu_blargg.h
diff options
context:
space:
mode:
authorJoão Silva2017-08-16 17:59:11 +0100
committerJoão Silva2017-08-16 17:59:11 +0100
commitaef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (patch)
treef1d740e45522954e48e036103268c5ccb5dcbef2 /source/apu_blargg.h
parentaa610b2ba997a945c77ce06e9a33638dedb480da (diff)
downloadsnes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.gz
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.bz2
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.zip
Changed compile-time flags to use C89 and fixed new warnings raised.
Diffstat (limited to 'source/apu_blargg.h')
-rw-r--r--source/apu_blargg.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/apu_blargg.h b/source/apu_blargg.h
index 3a07e2c..65faafd 100644
--- a/source/apu_blargg.h
+++ b/source/apu_blargg.h
@@ -82,17 +82,17 @@ typedef void (*dsp_copy_func_t)( uint8_t ** io, void* state, size_t );
typedef struct
{
- int32_t buf [BRR_BUF_SIZE_X2]; // decoded samples (twice the size to simplify wrap handling)
- int32_t buf_pos; // place in buffer where next samples will be decoded
- int32_t interp_pos; // relative fractional position in sample (0x1000 = 1.0)
- int32_t brr_addr; // address of current BRR block
- int32_t brr_offset; // current decoding offset in BRR block
- uint8_t* regs; // pointer to voice's DSP registers
- int32_t vbit; // bitmask for voice: 0x01 for voice 0, 0x02 for voice 1, etc.
- int32_t kon_delay; // KON delay/current setup phase
+ int32_t buf [BRR_BUF_SIZE_X2]; /* decoded samples (twice the size to simplify wrap handling) */
+ int32_t buf_pos; /* place in buffer where next samples will be decoded */
+ int32_t interp_pos; /* relative fractional position in sample (0x1000 = 1.0) */
+ int32_t brr_addr; /* address of current BRR block */
+ int32_t brr_offset; /* current decoding offset in BRR block */
+ uint8_t* regs; /* pointer to voice's DSP registers */
+ int32_t vbit; /* bitmask for voice: 0x01 for voice 0, 0x02 for voice 1, etc. */
+ int32_t kon_delay; /* KON delay/current setup phase */
int32_t env_mode;
- int32_t env; // current envelope level
- int32_t hidden_env; // used by GAIN mode 7, very obscure quirk
+ int32_t env; /* current envelope level */
+ int32_t hidden_env; /* used by GAIN mode 7, very obscure quirk */
uint8_t t_envx_out;
} dsp_voice_t;
@@ -292,5 +292,5 @@ void S9xClearSamples();
bool S9xMixSamples(int16_t * buffer, uint32_t sample_count);
void S9xSetSamplesAvailableCallback(apu_callback);
-#endif // APU_BLARGG_H
+#endif /* APU_BLARGG_H */
#endif