diff options
Diffstat (limited to 'samples/iolib/src/main/cpp/player/SampleSource.h')
-rw-r--r-- | samples/iolib/src/main/cpp/player/SampleSource.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/iolib/src/main/cpp/player/SampleSource.h b/samples/iolib/src/main/cpp/player/SampleSource.h index 69dc57bf..80be39df 100644 --- a/samples/iolib/src/main/cpp/player/SampleSource.h +++ b/samples/iolib/src/main/cpp/player/SampleSource.h @@ -39,13 +39,13 @@ public: static constexpr float PAN_CENTER = 0.0f; SampleSource(SampleBuffer *sampleBuffer, float pan) - : mSampleBuffer(sampleBuffer), mCurFrameIndex(0), mIsPlaying(false), mGain(1.0f) { + : mSampleBuffer(sampleBuffer), mCurSampleIndex(0), mIsPlaying(false), mGain(1.0f) { setPan(pan); } virtual ~SampleSource() {} - void setPlayMode() { mCurFrameIndex = 0; mIsPlaying = true; } - void setStopMode() { mIsPlaying = false; mCurFrameIndex = 0; } + void setPlayMode() { mCurSampleIndex = 0; mIsPlaying = true; } + void setStopMode() { mIsPlaying = false; mCurSampleIndex = 0; } bool isPlaying() { return mIsPlaying; } @@ -76,7 +76,7 @@ public: protected: SampleBuffer *mSampleBuffer; - int32_t mCurFrameIndex; + int32_t mCurSampleIndex; bool mIsPlaying; |