diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-12 17:36:08 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-15 08:57:35 +0200 |
commit | 87e0b9b288c0157544cfcefb63015a319507698a (patch) | |
tree | ddb9585029d76b522f8e4d173c30da55bde7aa61 /src/audiocache.h | |
parent | 5bc9578f8d80029ae6d37471450a6ec23350de23 (diff) |
Use std::size types.
Diffstat (limited to 'src/audiocache.h')
-rw-r--r-- | src/audiocache.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/audiocache.h b/src/audiocache.h index 761f2b2..475f1aa 100644 --- a/src/audiocache.h +++ b/src/audiocache.h @@ -51,7 +51,7 @@ public: //! This method starts the cache manager thread. //! This method blocks until the thread has been started. //! \param poolsize The maximum number of parellel events supported. - void init(size_t poolsize); + void init(std::size_t poolsize); //! Stop thread and clean up resources. //! This method blocks until the thread has stopped. @@ -68,7 +68,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(const AudioFile& file, size_t initial_samples_needed, int channel, + sample_t* open(const AudioFile& file, std::size_t initial_samples_needed, int channel, cacheid_t& new_id); //! Get next buffer. @@ -78,7 +78,7 @@ public: //! \param id The cache id to read from. //! \param [out] size The size of the returned buffer. //! \return A pointer to the buffer. - sample_t* next(cacheid_t id, size_t &size); + sample_t* next(cacheid_t id, std::size_t &size); //! Returns true iff the next chunk of the supplied id has been read from disk. bool isReady(cacheid_t id); @@ -89,8 +89,8 @@ public: void close(cacheid_t id); //! Set/get internal framesize used when iterating through cache buffers. - void setFrameSize(size_t framesize); - size_t getFrameSize() const; + void setFrameSize(std::size_t framesize); + std::size_t getFrameSize() const; //! Control/get reader threaded mode. //! True means reading happening threaded, false means all reading done @@ -99,9 +99,9 @@ public: bool isAsyncMode() const; private: - size_t framesize{0}; + std::size_t framesize{0}; sample_t* nodata{nullptr}; - size_t nodata_framesize{0}; + std::size_t nodata_framesize{0}; AudioCacheIDManager id_manager; AudioCacheEventHandler event_handler{id_manager}; |