diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-11 21:06:16 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-11 21:06:16 +0000 |
commit | 1b9f9fb4651c9af36ca0bf21746c211afd90a916 (patch) | |
tree | c8124b38421bbe5eefbabfbc0335f091dcfc3b44 /apps/codecs/libgme/ym2612_emu.c | |
parent | b1279498609808cf65a7054ae7085b4885a33e66 (diff) | |
download | rockbox-1b9f9fb4651c9af36ca0bf21746c211afd90a916.tar.gz rockbox-1b9f9fb4651c9af36ca0bf21746c211afd90a916.zip |
5th part of FS#12176. Further fixed point migration. Only two emulators (ym2413, ym2612) still use floating point.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30281 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/ym2612_emu.c')
-rw-r--r-- | apps/codecs/libgme/ym2612_emu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libgme/ym2612_emu.c b/apps/codecs/libgme/ym2612_emu.c index 54930298c9..2162d73850 100644 --- a/apps/codecs/libgme/ym2612_emu.c +++ b/apps/codecs/libgme/ym2612_emu.c | |||
@@ -682,15 +682,15 @@ static void impl_set_rate( struct Ym2612_Impl* impl, double sample_rate, double | |||
682 | impl_reset( impl ); | 682 | impl_reset( impl ); |
683 | } | 683 | } |
684 | 684 | ||
685 | const char* Ym2612_set_rate( struct Ym2612_Emu* this, double sample_rate, double clock_rate ) | 685 | const char* Ym2612_set_rate( struct Ym2612_Emu* this, int sample_rate, int clock_rate ) |
686 | { | 686 | { |
687 | // Only set rates if necessary | 687 | // Only set rates if necessary |
688 | #if defined(ROCKBOX) | 688 | #if defined(ROCKBOX) |
689 | static double last_sample_rate = 0.0, last_clock_rate = 0.0; | 689 | static int last_sample_rate = 0, last_clock_rate = 0; |
690 | if (last_sample_rate == sample_rate && last_clock_rate == clock_rate) return 0; | 690 | if (last_sample_rate == sample_rate && last_clock_rate == clock_rate) return 0; |
691 | #endif | 691 | #endif |
692 | memset( &this->impl.YM2612, 0, sizeof this->impl.YM2612 ); | 692 | memset( &this->impl.YM2612, 0, sizeof this->impl.YM2612 ); |
693 | impl_set_rate( &this->impl, sample_rate, clock_rate ); | 693 | impl_set_rate( &this->impl, (double)sample_rate, (double)clock_rate ); |
694 | 694 | ||
695 | return 0; | 695 | return 0; |
696 | } | 696 | } |