mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
PCMStream interface update
This commit is contained in:
parent
7c51e39dfe
commit
2fab1593c8
5 changed files with 50 additions and 61 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue