zenilib
0.5.3.0
|
#include <Sound_Buffer.h>
Public Member Functions | |
const float & | get_duration () const |
Get the duration of the Sound_Buffer in seconds. More... | |
const ALuint & | get_id () const |
Get the OpenAL id of the Sound_Buffer. More... | |
Static Public Member Functions | |
static std::pair< ALuint, float > | load_ogg_vorbis (const String &filename) |
Ogg Vorbis Loader. More... | |
Friends | |
class | Database< Sound_Buffer > |
class | Sound |
class | Sounds |
Stores Sound Data.
A Sound_Buffer stores sound data to be played from Sound_Sources.
Contact: bazal d@ze nipex .com
Definition at line 83 of file Sound_Buffer.h.
|
inline |
Get the duration of the Sound_Buffer in seconds.
Definition at line 102 of file Sound_Buffer.h.
Referenced by Zeni::Sound_Source_HW::get_duration().
Get the OpenAL id of the Sound_Buffer.
Definition at line 97 of file Sound_Buffer.h.
Ogg Vorbis Loader.
Definition at line 113 of file Sound_Buffer.cpp.
References AL_FORMAT_MONO16, AL_FORMAT_STEREO16, AL_NONE, Zeni::Sound_Renderer_AL::alBufferData(), Zeni::Sound_Renderer_AL::alGenBuffers(), vorbis_info::channels, int, ov_clear(), ov_fopen(), ov_info(), ov_pcm_total(), ov_read(), and vorbis_info::rate.
|
friend |
Definition at line 85 of file Sound_Buffer.h.
|
friend |
Definition at line 84 of file Sound_Buffer.h.
|
friend |
Definition at line 86 of file Sound_Buffer.h.