diff --git a/plugins/nes/Nes.cpp b/plugins/nes/Nes.cpp index 1efa56dc9..240dcbc08 100644 --- a/plugins/nes/Nes.cpp +++ b/plugins/nes/Nes.cpp @@ -57,11 +57,10 @@ Plugin::Descriptor PLUGIN_EXPORT nes_plugin_descriptor = } -NesObject::NesObject( NesInstrument * nes, const sample_rate_t samplerate, NotePlayHandle * nph, fpp_t frames ) : +NesObject::NesObject( NesInstrument * nes, const sample_rate_t samplerate, NotePlayHandle * nph ) : m_parent( nes ), m_samplerate( samplerate ), - m_nph( nph ), - m_fpp( frames ) + m_nph( nph ) { m_pitchUpdateCounter = 0; m_pitchUpdateFreq = wavelength( 60.0f ); @@ -558,7 +557,7 @@ void NesInstrument::playNote( NotePlayHandle * n, sampleFrame * workingBuffer ) { if ( n->totalFramesPlayed() == 0 || n->m_pluginData == NULL ) { - NesObject * nes = new NesObject( this, engine::mixer()->processingSampleRate(), n, engine::mixer()->framesPerPeriod() ); + NesObject * nes = new NesObject( this, engine::mixer()->processingSampleRate(), n ); n->m_pluginData = nes; } diff --git a/plugins/nes/Nes.h b/plugins/nes/Nes.h index 6a80f0974..523d006dd 100644 --- a/plugins/nes/Nes.h +++ b/plugins/nes/Nes.h @@ -81,7 +81,7 @@ class NesInstrument; class NesObject { public: - NesObject( NesInstrument * nes, const sample_rate_t samplerate, NotePlayHandle * nph, fpp_t frames ); + NesObject( NesInstrument * nes, const sample_rate_t samplerate, NotePlayHandle * nph ); virtual ~NesObject(); void renderOutput( sampleFrame * buf, fpp_t frames ); @@ -149,7 +149,6 @@ private: NesInstrument * m_parent; const sample_rate_t m_samplerate; NotePlayHandle * m_nph; - fpp_t m_fpp; int m_pitchUpdateCounter; int m_pitchUpdateFreq;