Standard file stream implementation using C stdio (fopen).
More...
#include <Stream/CFileStream.h>
|
|
| CFileStream (const char *fileName) |
| bool | isError () |
| | Check if the file failed to open.
|
| virtual IStreamCursor * | createCursor () |
| | Create a new file cursor.
|
|
virtual void | grab () |
| | Increment reference count.
|
| virtual bool | drop () |
| | Decrement reference count and delete if zero.
|
| int | getSampleRate () |
| | Get expected sample rate (for recorder/procedural streams).
|
| int | getChannels () |
| | Get number of channels (for recorder/procedural streams).
|
| void | setStreamAudio (int sampleRate, int channels) |
| | Set stream audio properties.
|
| virtual void | uploadData (unsigned char *buffer, int size) |
| | Upload new data to the stream (used in online/dynamic streams).
|
| virtual void | stopStream () |
| | Stop the stream and clear buffers.
|
|
|
std::string | m_fileName |
|
FILE * | m_file |
|
int | m_size |
|
int | m_referenceCount |
|
int | m_sampleRate |
|
int | m_channels |
Standard file stream implementation using C stdio (fopen).
◆ createCursor()
| virtual IStreamCursor * Skylicht::Audio::CFileStream::createCursor |
( |
| ) |
|
|
virtual |
◆ isError()
| bool Skylicht::Audio::CFileStream::isError |
( |
| ) |
|
Check if the file failed to open.
- Returns
- True if error
The documentation for this class was generated from the following file: