diff options
Diffstat (limited to 'apps/codecs/libgme/gb_oscs.c')
-rw-r--r-- | apps/codecs/libgme/gb_oscs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libgme/gb_oscs.c b/apps/codecs/libgme/gb_oscs.c index 5c9b816d21..b136e3b218 100644 --- a/apps/codecs/libgme/gb_oscs.c +++ b/apps/codecs/libgme/gb_oscs.c | |||
@@ -395,8 +395,8 @@ void write_osc( struct Gb_Apu* this, int reg, int old_data, int data ) | |||
395 | void Square_run( struct Gb_Square* this, blip_time_t time, blip_time_t end_time ) | 395 | void Square_run( struct Gb_Square* this, blip_time_t time, blip_time_t end_time ) |
396 | { | 396 | { |
397 | // Calc duty and phase | 397 | // Calc duty and phase |
398 | static byte const duty_offsets [4] ICONST_ATTR = { 1, 1, 3, 7 }; | 398 | static byte const duty_offsets [4] = { 1, 1, 3, 7 }; |
399 | static byte const duties [4] ICONST_ATTR = { 1, 2, 4, 6 }; | 399 | static byte const duties [4] = { 1, 2, 4, 6 }; |
400 | 400 | ||
401 | struct Gb_Osc* osc = &this->osc; | 401 | struct Gb_Osc* osc = &this->osc; |
402 | int const duty_code = osc->regs [1] >> 6; | 402 | int const duty_code = osc->regs [1] >> 6; |
@@ -595,7 +595,7 @@ void Noise_run( struct Gb_Noise* this, blip_time_t time, blip_time_t end_time ) | |||
595 | } | 595 | } |
596 | 596 | ||
597 | // Run timer and calculate time of next LFSR clock | 597 | // Run timer and calculate time of next LFSR clock |
598 | static byte const period1s [8] ICONST_ATTR = { 1, 2, 4, 6, 8, 10, 12, 14 }; | 598 | static byte const period1s [8] = { 1, 2, 4, 6, 8, 10, 12, 14 }; |
599 | int const period1 = period1s [osc->regs [3] & 7] * clk_mul; | 599 | int const period1 = period1s [osc->regs [3] & 7] * clk_mul; |
600 | 600 | ||
601 | #ifdef GB_APU_FAST | 601 | #ifdef GB_APU_FAST |
@@ -680,7 +680,7 @@ void Wave_run( struct Gb_Wave* this, blip_time_t time, blip_time_t end_time ) | |||
680 | int const volume_shift = shifts [volume_idx]; | 680 | int const volume_shift = shifts [volume_idx]; |
681 | int const volume_mul = 1; | 681 | int const volume_mul = 1; |
682 | #else | 682 | #else |
683 | static byte const volumes [8] ICONST_ATTR = { 0, 4, 2, 1, 3, 3, 3, 3 }; | 683 | static byte const volumes [8] = { 0, 4, 2, 1, 3, 3, 3, 3 }; |
684 | int const volume_shift = 2 + 4; | 684 | int const volume_shift = 2 + 4; |
685 | int const volume_idx = this->osc.regs [2] >> 5 & (this->agb_mask | 3); // 2 bits on DMG/CGB, 3 on AGB | 685 | int const volume_idx = this->osc.regs [2] >> 5 & (this->agb_mask | 3); // 2 bits on DMG/CGB, 3 on AGB |
686 | int const volume_mul = volumes [volume_idx]; | 686 | int const volume_mul = volumes [volume_idx]; |