Public Member Functions | Private Attributes | List of all members
nom::OpenAL::SoundFile Class Reference

Public Member Functions

size_t getSampleCount (void) const
 Obtain number of samples in audio file.
 
uint32 getChannelCount (void) const
 Obtain number of channels used by audio file.
 
uint32 getSampleRate (void) const
 Obtain audio sampling rate; this is the number of samples per second.
 
uint32 getChannelFormat (void) const
 Obtain channel format; used internally by OpenAL.
 
size_t getDataByteSize (void) const
 Obtain audio data size in bytes.
 
bool open (const std::string &filename)
 
bool read (std::vector< int16 > &data)
 

Private Attributes

std::shared_ptr< SNDFILE > fp
 SNDFILE* file descriptor.
 
std::vector< int16 > samples
 Extracted audio stream from file.
 
std::size_t sample_count
 Total number of samples in the file.
 
uint32 channel_count
 Number of audio channels used by sound.
 
uint32 sample_rate
 Number of samples per second.
 
int32 channel_format
 OpenAL compatible audio channels used by sound.
 

Detailed Description

Definition at line 45 of file SoundFile.hpp.


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