diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2016-05-28 16:03:26 +0200 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2016-05-28 16:17:42 +0200 |
commit | 8867829f11cce6aa7ac39df4f1d0a5c4f4f485ca (patch) | |
tree | 6516ce4b79a7d2e27353978b209f8e79c0aaee15 /src/engine/readaheadmanager.h | |
parent | ce8462963eac12ee44ffc2ff3b8abe742fd0cc0a (diff) |
Use SINT for all sample/frame index and length calculations
Diffstat (limited to 'src/engine/readaheadmanager.h')
-rw-r--r-- | src/engine/readaheadmanager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/readaheadmanager.h b/src/engine/readaheadmanager.h index 4d26a464df..6fe1a906f7 100644 --- a/src/engine/readaheadmanager.h +++ b/src/engine/readaheadmanager.h @@ -26,8 +26,8 @@ class RateControl; // point. class ReadAheadManager { public: - explicit ReadAheadManager(); // Only for testing: ReadAheadManagerMock - explicit ReadAheadManager(CachingReader* reader, + ReadAheadManager(); // Only for testing: ReadAheadManagerMock + ReadAheadManager(CachingReader* reader, LoopingControl* pLoopingControl); virtual ~ReadAheadManager(); @@ -36,7 +36,7 @@ class ReadAheadManager { // direction the audio is progressing in. Returns the total number of // samples read into buffer. Note that it is very common that the total // samples read is less than the requested number of samples. - virtual int getNextSamples(double dRate, CSAMPLE* buffer, int requested_samples); + virtual SINT getNextSamples(double dRate, CSAMPLE* buffer, SINT requested_samples); // Used to add a new EngineControls that ReadAheadManager will use to decide @@ -45,17 +45,17 @@ class ReadAheadManager { void addRateControl(RateControl* pRateControl); // Get the current read-ahead position in samples. - virtual inline int getPlaypos() const { + virtual inline SINT getPlaypos() const { return m_iCurrentPosition; } - virtual void notifySeek(int iSeekPosition); + virtual void notifySeek(SINT iSeekPosition); // hintReader allows the ReadAheadManager to provide hints to the reader to // indicate that the given portion of a song is about to be read. virtual void hintReader(double dRate, HintVector* hintList); - virtual int getEffectiveVirtualPlaypositionFromLog(double currentVirtualPlayposition, + virtual SINT getEffectiveVirtualPlaypositionFromLog(double currentVirtualPlayposition, double numConsumedSamples); virtual void setReader(CachingReader* pReader) { @@ -120,7 +120,7 @@ class ReadAheadManager { LoopingControl* m_pLoopingControl; RateControl* m_pRateControl; QLinkedList<ReadLogEntry> m_readAheadLog; - int m_iCurrentPosition; + SINT m_iCurrentPosition; CachingReader* m_pReader; CSAMPLE* m_pCrossFadeBuffer; }; |