30typedef unsigned int U32;
32#define MAX_STREAM_BUFFERS 16
33#define MAX_BUFFER_SAMPLES 16384
43 vec3_t vRelativeOrigin;
98 void set_no_virtualization();
99 void set_virtualization();
101 void set_gain(
float gain);
102 void set_velocity(
float v0,
float v1,
float v2);
103 void set_position(
float v0,
float v1,
float v2);
110 virtual bool set_sfx(sfx_t *pSfx);
114 void resume_sample();
117 void set_sample_pan(S32 pan);
118 void set_sample_playback_rate(S32 pan);
119 S32 sample_playback_rate();
122 virtual U32 sample_offset();
123 U32 sample_ms_offset();
124 U32 sample_loop_count();
125 virtual void set_sample_offset(U32 offset);
126 void set_sample_ms_offset(U32 offset);
127 virtual void set_sample_loop_count(S32 count);
128 void set_sample_loop_block(S32 start_offset, S32 end_offset);
133 virtual void update();
135 virtual U32 buffer_frequency()
const;
142 unsigned int buffers[MAX_STREAM_BUFFERS];
143 unsigned int currentBuf;
144 unsigned int sampleLoopCount;
145 unsigned int sampleLooped;
146 unsigned int streamNextOffset;
150 openal_channel_two_d_stream();
151 ~openal_channel_two_d_stream();
153 void stop()
override;
154 bool set_sfx(sfx_t *pSfx)
override;
155 void set_sample_loop_count(S32 count)
override;
156 void update()
override;
157 U32 sample_offset()
override;
158 void set_sample_offset(U32 offset)
override;
160 bool queue_stream(
const char *fileName);
163 U32 buffer_frequency()
const override;
168 unsigned int getQueueLength()
const;
169 unsigned int getCurrentStreamPosition()
const;
170 unsigned int getBitsPerSample()
const;
194 char tm_filename[MAX_RES_NAME];
202 qboolean S_OPENAL_Init();
203 void S_OPENAL_Shutdown();
204 void S_OPENAL_StartSound(
205 const vec3_t vOrigin,
208 sfxHandle_t sfxHandle,
215 void S_OPENAL_AddLoopingSound(
216 const vec3_t vOrigin,
217 const vec3_t vVelocity,
218 sfxHandle_t sfxHandle,
225 void S_OPENAL_ClearLoopingSounds();
226 void S_OPENAL_StopSound(
int iEntNum,
int iEntChannel);
227 void S_OPENAL_StopAllSounds(qboolean bStopMusic);
228 void S_OPENAL_Respatialize(
int iEntNum,
const vec3_t vHeadPos,
const vec3_t vAxis[3]);
229 void S_OPENAL_SetReverb(
int iType,
float fLevel);
230 void S_OPENAL_Update();
232 const char *S_OPENAL_GetMusicFilename();
233 int S_OPENAL_GetMusicLoopCount();
234 unsigned int S_OPENAL_GetMusicOffset();
Definition snd_openal_new.h:138
Definition snd_openal_new.h:63
Definition snd_openal_new.h:177
Definition snd_openal_new.h:41
Definition snd_openal_new.h:173