Otclient  14/8/2020
SoundBuffer Class Reference

#include <soundbuffer.h>

Inheritance diagram for SoundBuffer:
Collaboration diagram for SoundBuffer:

Public Member Functions

 SoundBuffer ()
 
 ~SoundBuffer ()
 
bool fillBuffer (const SoundFilePtr &soundFile)
 
bool fillBuffer (ALenum sampleFormat, const DataBuffer< char > &data, int size, int rate)
 
uint getBufferId ()
 
- 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 ()
 

Detailed Description

Definition at line 30 of file soundbuffer.h.

Constructor & Destructor Documentation

◆ SoundBuffer()

SoundBuffer::SoundBuffer ( )

Definition at line 26 of file soundbuffer.cpp.

◆ ~SoundBuffer()

SoundBuffer::~SoundBuffer ( )

Definition at line 33 of file soundbuffer.cpp.

Member Function Documentation

◆ fillBuffer() [1/2]

bool SoundBuffer::fillBuffer ( ALenum  sampleFormat,
const DataBuffer< char > &  data,
int  size,
int  rate 
)

Definition at line 57 of file soundbuffer.cpp.

Here is the call graph for this function:

◆ fillBuffer() [2/2]

bool SoundBuffer::fillBuffer ( const SoundFilePtr soundFile)

Definition at line 39 of file soundbuffer.cpp.

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

◆ getBufferId()

uint SoundBuffer::getBufferId ( )
inline

Definition at line 39 of file soundbuffer.h.

Here is the caller graph for this function:

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