36 #ifndef ZENI_SOUND_BUFFER_H
37 #define ZENI_SOUND_BUFFER_H
43 #if defined(ENABLE_SLES)
44 #include <SLES/OpenSLES.h>
46 #include <SLES/OpenSLES_Android.h>
50 #if !defined(DISABLE_AL)
52 #include <OpenAL/al.h>
59 #if defined(ENABLE_SLES)
60 #define ALint sl_int32_t
61 #define ALuint sl_uint32_t
62 #define ALfloat sl_float_t
63 #define ALenum sl_int32_t
65 #define AL_TRUE SL_BOOLEAN_TRUE
66 #define AL_FALSE SL_BOOLEAN_FALSE
69 #define ALuint unsigned int
74 #define AL_FALSE false
81 class ZENI_AUDIO_DLL Sound_Source;
100 const SLDataSource & get_audioSrc()
const {
return audioSrc;}
105 static std::pair<ALuint, float> load_ogg_vorbis(
const String &
filename);
114 SLDataLocator_AndroidFD loc_fd;
115 SLDataFormat_MIME format_mime;
116 SLDataSource audioSrc;
119 mutable float m_duration;
const float & get_duration() const
Get the duration of the Sound_Buffer in seconds.
A Sound_Buffer Database Singleton.
A Texture Database Singleton.
const ALuint & get_id() const
Get the OpenAL id of the Sound_Buffer.
Sound_Buffer_Init_Failure()