9a76eea2f5a4966f140916a40d0f5bf4b00fb01b | ecea45defab258134a175bcf8a178f1ac7e4243e | ||
---|---|---|---|
22 | VOLUME_DEFAULT, | 22 | VOLUME_DEFAULT, |
23 | 0, | 23 | 0, |
24 | NULL, | 24 | NULL, |
25 | -1, | ||
26 | -1, | ||
25 | 0, | 27 | 0, |
26 | 0, | 28 | 0, |
27 | 0, | 29 | 0, |
... | ... | ||
400 | { | 402 | { |
401 | int i; | 403 | int i; |
402 | 404 | ||
403 | if((index < 0) || (index >= SID_MAXIMUM)) | ||
404 | return; /* no such sound */ | ||
405 | |||
406 | GameSounds[index].loaded = 0; | 405 | GameSounds[index].loaded = 0; |
407 | GameSounds[index].dsFrequency = 0; | 406 | GameSounds[index].dsFrequency = 0; |
408 | 407 | ||
... | ... | ||
653 | 652 | ||
654 | if(AL_NO_ERROR == alGetError()) | 653 | if(AL_NO_ERROR == alGetError()) |
655 | { | 654 | { |
656 | const static ALfloat zero[3] = { 0.0f, 0.0f, 0.0f }; | 655 | static const ALfloat zero[3] = { 0.0f, 0.0f, 0.0f }; |
657 | alSourcefv(ActiveSounds[activeIndex].ds3DBufferP, AL_POSITION, zero); | 656 | alSourcefv(ActiveSounds[activeIndex].ds3DBufferP, AL_POSITION, zero); |
658 | 657 | ||
659 | if(AL_NO_ERROR == alGetError()) | 658 | if(AL_NO_ERROR == alGetError()) |