Lines 215-220
Link Here
|
215 |
} |
215 |
} |
216 |
|
216 |
|
217 |
// Attach the buffer to the source. |
217 |
// Attach the buffer to the source. |
|
|
218 |
#if 0 |
218 |
alSourcei(srcName, AL_BUFFER, bufName); |
219 |
alSourcei(srcName, AL_BUFFER, bufName); |
219 |
if(DSOPENAL_ERRCHECK(alGetError())) |
220 |
if(DSOPENAL_ERRCHECK(alGetError())) |
220 |
{ |
221 |
{ |
Lines 222-227
Link Here
|
222 |
alDeleteBuffers(1, &bufName); |
223 |
alDeleteBuffers(1, &bufName); |
223 |
return NULL; |
224 |
return NULL; |
224 |
} |
225 |
} |
|
|
226 |
#endif |
225 |
|
227 |
|
226 |
if(!(flags & SFXBF_3D)) |
228 |
if(!(flags & SFXBF_3D)) |
227 |
{ |
229 |
{ |
Lines 270-275
Link Here
|
270 |
return; // No need to reload. |
272 |
return; // No need to reload. |
271 |
} |
273 |
} |
272 |
|
274 |
|
|
|
275 |
alSourceStop(SRC(buf)); |
276 |
alSourcei(SRC(buf), AL_BUFFER, 0); |
273 |
alBufferData(BUF(buf), |
277 |
alBufferData(BUF(buf), |
274 |
sample->bytesPer == 1 ? AL_FORMAT_MONO8 : AL_FORMAT_MONO16, |
278 |
sample->bytesPer == 1 ? AL_FORMAT_MONO8 : AL_FORMAT_MONO16, |
275 |
sample->data, sample->size, sample->rate); |
279 |
sample->data, sample->size, sample->rate); |