|
Allolib
1.0
C++ Components For Interactive Multimedia
|
The SoundFileStreaming class provides reading soundifle directly from disk one buffer at a time. More...
Public Member Functions | |
| SoundFileStreaming (const char *path=nullptr) | |
| bool | isOpen () |
| uint32_t | sampleRate () |
| Sampling rate of file. Call after open has returned true. | |
| uint64_t | totalFrames () |
| Total number of frames in file. Call after open has returned true. | |
| uint16_t | numChannels () |
| Number of channels in file. Call after open has returned true. | |
| bool | open (const char *path) |
| Open file for reading. | |
| void | close () |
| Close file and cleanup. | |
| uint64_t | getFrames (uint64_t numFrames, float *buffer) |
| Read interleaved frames into preallocated buffer;. | |
The SoundFileStreaming class provides reading soundifle directly from disk one buffer at a time.
This is a simple reading class with few options, if you need more comprehensive support, use the soundfile module in al_ext
Definition at line 73 of file al_SoundFile.hpp.