![]() |
Skylicht Engine
|
Interface for stream factories. Register a custom factory to CAudioEngine to support different data sources (e.g. ZIP, Network). More...
#include <Stream/IStreamFactory.h>
Public Member Functions | |
| virtual IStream * | createStreamFromMemory (unsigned char *buffer, int size, bool takeOwnership)=0 |
| Create an audio stream from a memory buffer. | |
| virtual IStream * | createStreamFromFile (const char *fileName)=0 |
| Create an audio stream from a file. | |
| virtual IStream * | createOnlineStream ()=0 |
| Create a stream for dynamic/online data. | |
Interface for stream factories. Register a custom factory to CAudioEngine to support different data sources (e.g. ZIP, Network).
|
pure virtual |
Create a stream for dynamic/online data.
Implemented in Skylicht::Audio::CStreamFactory.
|
pure virtual |
Create an audio stream from a file.
| fileName | Path to the file |
Implemented in Skylicht::Audio::CStreamFactory, and Skylicht::CZipAudioStreamFactory.
|
pure virtual |
Create an audio stream from a memory buffer.
| buffer | The memory buffer |
| size | Size in bytes |
| takeOwnership | If true, the factory/stream will delete the buffer |
Implemented in Skylicht::Audio::CStreamFactory.