aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/player_nes.h
diff options
context:
space:
mode:
authorMax Horn2007-02-17 16:59:06 +0000
committerMax Horn2007-02-17 16:59:06 +0000
commitf027e2f5626f896f0b9df59f1571da4ebafe0571 (patch)
treea7527a3a58c56311bef48dd15adf0f5c0001bb08 /engines/scumm/player_nes.h
parent3270885bc1fae70273688debd0b12a888faaa2f2 (diff)
downloadscummvm-rg350-f027e2f5626f896f0b9df59f1571da4ebafe0571.tar.gz
scummvm-rg350-f027e2f5626f896f0b9df59f1571da4ebafe0571.tar.bz2
scummvm-rg350-f027e2f5626f896f0b9df59f1571da4ebafe0571.zip
OOified Player_NES code; revamped the code in GetSample slightly (to avoid overflows, an expensive multiplication and an even more expensive division)
svn-id: r25658
Diffstat (limited to 'engines/scumm/player_nes.h')
-rw-r--r--engines/scumm/player_nes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/scumm/player_nes.h b/engines/scumm/player_nes.h
index 9739766913..e79e139343 100644
--- a/engines/scumm/player_nes.h
+++ b/engines/scumm/player_nes.h
@@ -35,6 +35,9 @@ namespace Audio {
namespace Scumm {
class ScummEngine;
+namespace APUe {
+ class APU;
+}
static const int MAXVOLUME = 0x7F;
static const int NUMSLOTS = 3;
@@ -77,6 +80,7 @@ private:
ScummEngine *_vm;
Audio::Mixer *_mixer;
+ APUe::APU *_apu;
int _sample_rate;
int _samples_per_frame;
int _current_sample;