Otclient  14/8/2020
SoundFile Class Reference

#include <soundfile.h>

Inheritance diagram for SoundFile:
Collaboration diagram for SoundFile:

Public Member Functions

 SoundFile (const FileStreamPtr &fileStream)
 
virtual ~SoundFile ()
 
virtual int read (void *buffer, int bufferSize)
 
virtual void reset ()
 
bool eof ()
 
ALenum getSampleFormat ()
 
int getChannels ()
 
int getRate ()
 
int getBps ()
 
int getSize ()
 
std::string getName ()
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Static Public Member Functions

static SoundFilePtr loadSoundFile (const std::string &filename)
 

Protected Attributes

FileStreamPtr m_file
 
int m_channels
 
int m_rate
 
int m_bps
 
int m_size
 

Detailed Description

Definition at line 29 of file soundfile.h.

Constructor & Destructor Documentation

◆ SoundFile()

SoundFile::SoundFile ( const FileStreamPtr fileStream)

Definition at line 27 of file soundfile.cpp.

◆ ~SoundFile()

virtual SoundFile::~SoundFile ( )
inlinevirtual

Definition at line 33 of file soundfile.h.

Member Function Documentation

◆ eof()

bool SoundFile::eof ( )
inline

Definition at line 38 of file soundfile.h.

Here is the call graph for this function:

◆ getBps()

int SoundFile::getBps ( )
inline

Definition at line 44 of file soundfile.h.

◆ getChannels()

int SoundFile::getChannels ( )
inline

Definition at line 42 of file soundfile.h.

◆ getName()

std::string SoundFile::getName ( )
inline

Definition at line 46 of file soundfile.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRate()

int SoundFile::getRate ( )
inline

Definition at line 43 of file soundfile.h.

Here is the caller graph for this function:

◆ getSampleFormat()

ALenum SoundFile::getSampleFormat ( )

Definition at line 57 of file soundfile.cpp.

Here is the caller graph for this function:

◆ getSize()

int SoundFile::getSize ( )
inline

Definition at line 45 of file soundfile.h.

Here is the caller graph for this function:

◆ loadSoundFile()

SoundFilePtr SoundFile::loadSoundFile ( const std::string &  filename)
static

Definition at line 32 of file soundfile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

virtual int SoundFile::read ( void *  buffer,
int  bufferSize 
)
inlinevirtual

Reimplemented in OggSoundFile.

Definition at line 36 of file soundfile.h.

Here is the caller graph for this function:

◆ reset()

virtual void SoundFile::reset ( )
inlinevirtual

Reimplemented in OggSoundFile.

Definition at line 37 of file soundfile.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_bps

int SoundFile::m_bps
protected

Definition at line 52 of file soundfile.h.

◆ m_channels

int SoundFile::m_channels
protected

Definition at line 50 of file soundfile.h.

◆ m_file

FileStreamPtr SoundFile::m_file
protected

Definition at line 49 of file soundfile.h.

◆ m_rate

int SoundFile::m_rate
protected

Definition at line 51 of file soundfile.h.

◆ m_size

int SoundFile::m_size
protected

Definition at line 53 of file soundfile.h.


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