mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add test PCMStream lua use
This commit is contained in:
parent
31137f83b6
commit
84f087049d
6 changed files with 157 additions and 0 deletions
|
|
@ -121,6 +121,10 @@ namespace audio {
|
|||
/// (always equals bufferSize if seekable and looped)
|
||||
virtual size_t readFully(char* buffer, size_t bufferSize, bool loop);
|
||||
|
||||
/// @brief Read available data to buffer
|
||||
/// @param buffer destination buffer
|
||||
/// @param bufferSize destination buffer size
|
||||
/// @return count of received bytes or PCMStream::ERROR
|
||||
virtual size_t read(char* buffer, size_t bufferSize) = 0;
|
||||
|
||||
/// @brief Close stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue