arsa  2.7
EffekseerSoundAL.h
Go to the documentation of this file.
1 
2 #ifndef __EFFEKSEERSOUND_BASE_PRE_H__
3 #define __EFFEKSEERSOUND_BASE_PRE_H__
4 
5 //----------------------------------------------------------------------------------
6 // Include
7 //----------------------------------------------------------------------------------
8 #if defined(_WIN32)
9 #include <AL/al.h>
10 #elif defined(__APPLE__)
11 #include <OpenAl/al.h>
12 #else
13 #include <AL/al.h>
14 #endif
15 
16 #include <Effekseer.h>
17 
18 //----------------------------------------------------------------------------------
19 //
20 //----------------------------------------------------------------------------------
21 namespace EffekseerSound
22 {
23 //----------------------------------------------------------------------------------
24 //
25 //----------------------------------------------------------------------------------
26 class Sound;
27 
28 //----------------------------------------------------------------------------------
29 //
30 //----------------------------------------------------------------------------------
31 }
32 //----------------------------------------------------------------------------------
33 //
34 //----------------------------------------------------------------------------------
35 #endif // __EFFEKSEERSOUND_BASE_PRE_H__
36 
37 #ifndef __EFFEKSEERSOUND_AL_H__
38 #define __EFFEKSEERSOUND_AL_H__
39 
40 //----------------------------------------------------------------------------------
41 // Include
42 //----------------------------------------------------------------------------------
43 
44 //----------------------------------------------------------------------------------
45 // Lib
46 //----------------------------------------------------------------------------------
47 
48 //----------------------------------------------------------------------------------
49 //
50 //----------------------------------------------------------------------------------
51 namespace EffekseerSound
52 {
53 //----------------------------------------------------------------------------------
54 //
55 //----------------------------------------------------------------------------------
56 
60 struct SoundData
61 {
66 
71 
75  ALuint buffer;
76 };
77 
81 class Sound
82 {
83 protected:
84  Sound() {}
85  virtual ~Sound() {}
86 
87 public:
95  static Sound* Create( int32_t numVoices );
96 
100  virtual void Destroy() = 0;
101 
105  virtual void SetListener( const ::Effekseer::Vector3D& pos,
106  const ::Effekseer::Vector3D& at, const ::Effekseer::Vector3D& up ) = 0;
107 
111  virtual ::Effekseer::SoundPlayer* CreateSoundPlayer() = 0;
112 
116  virtual ::Effekseer::SoundLoader* CreateSoundLoader( ::Effekseer::FileInterface* fileInterface = NULL ) = 0;
117 
121  virtual void StopAllVoices() = 0;
122 
126  virtual void SetMute( bool mute ) = 0;
127 
128 };
129 
130 //----------------------------------------------------------------------------------
131 //
132 //----------------------------------------------------------------------------------
133 }
134 //----------------------------------------------------------------------------------
135 //
136 //----------------------------------------------------------------------------------
137 #endif // __EFFEKSEERSOUND_AL_H__
static Sound * Create(int32_t numVoices)
インスタンスを生成する。
virtual void SetMute(bool mute)=0
ミュート設定
int32_t channels
チャンネル数。
signed int int32_t
ALuint buffer
OpenALバッファ。
factory class for io
Definition: Effekseer.h:1484
virtual void StopAllVoices()=0
全発音を停止
virtual ::Effekseer::SoundPlayer * CreateSoundPlayer()=0
サウンドプレイヤを生成する。
virtual void Destroy()=0
このインスタンスを破棄する。
サウンドデータ
サウンドクラス
#define NULL
Definition: begin_code.h:167
virtual ::Effekseer::SoundLoader * CreateSoundLoader(::Effekseer::FileInterface *fileInterface=NULL)=0
標準のサウンド読込インスタンスを生成する。
virtual void SetListener(const ::Effekseer::Vector3D &pos, const ::Effekseer::Vector3D &at, const ::Effekseer::Vector3D &up)=0
リスナー設定
int32_t sampleRate
サンプリング周波数。