diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-29 20:49:18 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-29 20:49:18 +0100 |
commit | aa635eb8da9804488513d1f3d422e4810e611bb8 (patch) | |
tree | 35db06cfe32f360d974503ff8c7562d1ab75f322 /src/audiocache.h | |
parent | 67a23a559e9707f9caf46716df30a8bf71bba9a7 (diff) | |
parent | 9ebd9aa0c3429f896e6c41f279b570ba36aec674 (diff) |
Merge branch 'diskstreaming_review_chaot' into diskstreaming
Diffstat (limited to 'src/audiocache.h')
-rw-r--r-- | src/audiocache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audiocache.h b/src/audiocache.h index 004fcf8..059faa2 100644 --- a/src/audiocache.h +++ b/src/audiocache.h @@ -67,7 +67,7 @@ public: //! \param [out] new_id The newly created cache id. //! \return A pointer to the first buffer containing the //! 'initial_samples_needed' number of samples. - sample_t* open(AudioFile* file, size_t initial_samples_needed, int channel, + sample_t* open(const AudioFile& file, size_t initial_samples_needed, int channel, cacheid_t& new_id); //! Get next buffer. @@ -79,7 +79,7 @@ public: //! \return A pointer to the buffer. sample_t* next(cacheid_t id, size_t &size); - //! Returns if the next chunk of the supplied id has been read from disk. + //! Returns true iff the next chunk of the supplied id has been read from disk. bool isReady(cacheid_t id); //! Unregister cache entry. @@ -105,7 +105,7 @@ public: private: size_t framesize{0}; - sample_t *nodata{nullptr}; + sample_t* nodata{nullptr}; size_t number_of_underruns{0}; AudioCacheIDManager id_manager; |