zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Sound_Buffer Class Reference

Stores Sound Data. More...

#include <Sound_Buffer.h>

Public Member Functions

const float & get_duration () const
 Get the duration of the Sound_Buffer in seconds. More...
 
const ALuintget_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
 

Detailed Description

Stores Sound Data.

A Sound_Buffer stores sound data to be played from Sound_Sources.

Note
Mono sounds work best.
Warning
Stereo sounds will not be affected by the positional audio system. Furthermore, in a surround sound speaker setup, they may play only through the left and right channels.
Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 83 of file Sound_Buffer.h.

Member Function Documentation

const float& Zeni::Sound_Buffer::get_duration ( ) const
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().

const ALuint& Zeni::Sound_Buffer::get_id ( ) const
inline

Get the OpenAL id of the Sound_Buffer.

Definition at line 97 of file Sound_Buffer.h.

std::pair< ALuint, float > Zeni::Sound_Buffer::load_ogg_vorbis ( const String filename)
static

Friends And Related Function Documentation

friend class Database< Sound_Buffer >
friend

Definition at line 85 of file Sound_Buffer.h.

friend class Sound
friend

Definition at line 84 of file Sound_Buffer.h.

friend class Sounds
friend

Definition at line 86 of file Sound_Buffer.h.


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