mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
- fixed SW sound crash.
This commit is contained in:
parent
f1e2c0c226
commit
2e8ace603b
1 changed files with 1 additions and 1 deletions
|
@ -671,7 +671,7 @@ int _PlaySound(int num, SPRITEp sp, PLAYERp pp, vec3_t* pos, Voc3D_Flags flags,
|
|||
auto rolloff = GetRolloff(vp->voc_distance);
|
||||
FVector3 spos = pos ? GetSoundPos(pos) : FVector3(0, 0, 0);
|
||||
auto chan = soundEngine->StartSound(sourcetype, source, &spos, channel, cflags, num, 1.f, ATTN_NORM, &rolloff, S_ConvertPitch(pitch));
|
||||
if (sourcetype == SOURCE_Unattached) chan->Source = sps; // needed for sound termination.
|
||||
if (chan && sourcetype == SOURCE_Unattached) chan->Source = sps; // needed for sound termination.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue