#include <audiere.h>
Inheritance diagram for audiere::File:


Public Types | |
| enum | SeekMode { BEGIN, CURRENT, END } |
Public Methods | |
| virtual int ADR_CALL | read (void *buffer, int size)=0 |
| virtual bool ADR_CALL | seek (int position, SeekMode mode)=0 |
| virtual int ADR_CALL | tell ()=0 |
Protected Methods | |
| ~File () | |
This interface is not synchronized.
Definition at line 167 of file audiere.h.
|
|
The different ways you can seek within a file. Definition at line 175 of file audiere.h. Referenced by audiere::CFile::seek(). |
|
|
|
|
||||||||||||
|
Read size bytes from the file, storing them in buffer.
Implemented in audiere::CFile. Referenced by audiere::WAVInputStream::initialize(), and audiere::MyFLACDecoder::read_callback(). |
|
||||||||||||
|
Jump to a new position in the file, using the specified seek mode. Remember: if mode is END, the position must be negative, to seek backwards from the end of the file into its contents. If the seek fails, the current position is undefined.
Implemented in audiere::CFile. Referenced by audiere::GetFileLength(), and audiere::MyFLACDecoder::seek_callback(). |
|
|
Get current position within the file.
Implemented in audiere::CFile. Referenced by audiere::MyFLACDecoder::eof_callback(), audiere::GetFileLength(), and audiere::MyFLACDecoder::tell_callback(). |
1.2.17