PCMStream interface update

This commit is contained in:
MihailRis
2024-03-01 14:27:04 +03:00
parent 7c51e39dfe
commit 2fab1593c8
5 changed files with 50 additions and 61 deletions
+4 -2
View File
@@ -72,8 +72,10 @@ namespace audio {
/// @param loop loop stream (seek to start when end reached)
/// @return size of data received
/// (always equals bufferSize if seekable and looped)
virtual size_t read(char* buffer, size_t bufferSize, bool loop)=0;
virtual size_t readFully(char* buffer, size_t bufferSize, bool loop);
virtual size_t read(char* buffer, size_t bufferSize) = 0;
/// @brief Close stream
virtual void close()=0;