![]() |
Skylicht Engine
|
Public Member Functions | |
| CZipAudioFileStreamCursor (io::IReadFile *file) | |
| virtual int | seek (int pos, EOrigin origin) |
| Move the cursor position. | |
| virtual int | tell () |
| Get current cursor position. | |
| virtual int | read (unsigned char *buff, int len) |
| Read data from the stream. | |
| virtual bool | endOfStream () |
| Check if the cursor is at the end of the stream. | |
| virtual int | size () |
| Get total size of the stream. | |
| virtual bool | readyReadData (int len) |
| Check if a certain amount of data is ready to be read. | |
| Public Member Functions inherited from Skylicht::Audio::IStreamCursor | |
| virtual void | trim () |
| Trim read data from the stream (used in dynamic streams). | |
Protected Attributes | |
| io::IReadFile * | m_file |
| int | m_size |
| int | m_pos |
| unsigned char * | m_buffer |
| int | m_bufferSize |
| int | m_bufferAvailableBytes |
| int | m_bufferPos |
| int | m_bufferOffset |
Additional Inherited Members | |
| Public Types inherited from Skylicht::Audio::IStreamCursor | |
| enum | EOrigin { OriginStart , OriginCurrent , OriginEnd } |
| Origin for seek operations. More... | |
|
virtual |
Check if the cursor is at the end of the stream.
Implements Skylicht::Audio::IStreamCursor.
|
virtual |
Read data from the stream.
| buff | Destination buffer |
| len | Number of bytes to read |
Implements Skylicht::Audio::IStreamCursor.
|
inlinevirtual |
Check if a certain amount of data is ready to be read.
| len | Number of bytes to check |
Implements Skylicht::Audio::IStreamCursor.
|
virtual |
Move the cursor position.
| pos | Offset in bytes |
| origin | Where to seek from |
Implements Skylicht::Audio::IStreamCursor.
|
virtual |
|
virtual |
Get current cursor position.
Implements Skylicht::Audio::IStreamCursor.