Nes/NesObject: remove unused m_fpp variable

This commit is contained in:
Tobias Doerffel
2014-09-01 16:23:33 +02:00
parent c400c9ba4d
commit d85f649897
2 changed files with 4 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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;