summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1091a54)
raw | patch | inline | side by side (parent: 1091a54)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 1 Sep 2019 09:33:16 +0000 (12:33 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 1 Sep 2019 09:33:16 +0000 (12:33 +0300) |
src/engine/e_sound_al.inc | patch | blob | history |
index 312b701bed68abae6a4cc1c31cfffd0cd2fed1bb..f6ec993523682ae056ccc574115d1c0ad403cdb8 100644 (file)
var
e_SoundFormat: TSoundFormat; // desired sound format
e_SoundsArray: array of TSoundRec = nil;
- e_ZeroPosition: array [0..2] of ALfloat;
+ e_ZeroPosition: array [0..2] of ALfloat = (0, 0, 0);
e_ALError: ALenum = 0;
implementation
if Result >= 0 then
begin
Pos[0] := Pan;
+ Pos[1] := 0;
+ Pos[2] := 0;
AssignSound(ID, alSources[Result]);
alSourcef(alSources[Result], AL_GAIN, 1);
alSourcefv(alSources[Result], AL_POSITION, Pos);
if Result >= 0 then
begin
Pos[0] := Pan;
+ Pos[1] := 0;
+ Pos[2] := 0;
AssignSound(ID, alSources[Result]);
alSourcefv(alSources[Result], AL_POSITION, Pos);
alSourcef(alSources[Result], AL_GAIN, Volume);
if InvalidSource() then
Exit;
Pos[0] := Pan;
+ Pos[1] := 0;
+ Pos[2] := 0;
alSourcefv(alSources[FSource], AL_POSITION, Pos);
end;