Allolib  1.0
C++ Components For Interactive Multimedia
al::SoundFileStreaming Class Reference

The SoundFileStreaming class provides reading soundifle directly from disk one buffer at a time. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/sound/al_SoundFile.hpp>

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;.
 

Detailed Description

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.


The documentation for this class was generated from the following file: