diff options
author | 2014-02-02 19:25:25 +0100 | |
---|---|---|
committer | 2014-02-02 19:25:36 +0100 | |
commit | 8c415fbaba3a55b178ef47211e2d88c21ce5956e (patch) | |
tree | 6fe6e5633f16972d51455c8d8ba3a938008296fc /plugins | |
parent | 7b88be8c394ba1c660b36cd9fa27431aaf61a437 (diff) |
gme: possible link issue fix in Sap_Apu.cpp
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gme/game-music-emu-0.6pre/gme/Sap_Apu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gme/game-music-emu-0.6pre/gme/Sap_Apu.cpp b/plugins/gme/game-music-emu-0.6pre/gme/Sap_Apu.cpp index 159e312d..d828c282 100644 --- a/plugins/gme/game-music-emu-0.6pre/gme/Sap_Apu.cpp +++ b/plugins/gme/game-music-emu-0.6pre/gme/Sap_Apu.cpp @@ -93,7 +93,8 @@ void Sap_Apu::reset( Sap_Apu_Impl* new_impl ) memset( &oscs [i], 0, offsetof (osc_t,output) ); } -static void Sap_Apu::calc_periods() +static byte fast_bits [Sap_Apu::osc_count] = { 1 << 6, 1 << 4, 1 << 5, 1 << 3 }; +void Sap_Apu::calc_periods() { // 15/64 kHz clock int divider = 28; @@ -106,7 +107,6 @@ static void Sap_Apu::calc_periods() int const osc_reload = osc->regs [0]; // cache int period = (osc_reload + 1) * divider; - static byte const fast_bits [osc_count] = { 1 << 6, 1 << 4, 1 << 5, 1 << 3 }; if ( this->control & fast_bits [i] ) { period = osc_reload + 4; |