add test PCMStream lua use

This commit is contained in:
MihailRis
2025-10-14 00:51:04 +03:00
parent 31137f83b6
commit 84f087049d
6 changed files with 157 additions and 0 deletions
+4
View File
@@ -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