mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- fixed playback on the wrong sound channel.
This commit is contained in:
parent
92c8e4c110
commit
e348fcb843
1 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ void SWSoundEngine::CalcPosVel(int type, const void* source, const float pt[3],
|
||||||
*pos = npos;
|
*pos = npos;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chanflags & CHANEXF_DONTPAN)
|
if (vpos && chanflags & CHANEXF_DONTPAN)
|
||||||
{
|
{
|
||||||
// For unpanned sounds the volume must be set directly and the position taken from the listener.
|
// For unpanned sounds the volume must be set directly and the position taken from the listener.
|
||||||
*pos = campos;
|
*pos = campos;
|
||||||
|
@ -668,7 +668,7 @@ int _PlaySound(int num, SPRITEp sp, PLAYERp pp, vec3_t* pos, Voc3D_Flags flags,
|
||||||
|
|
||||||
auto rolloff = GetRolloff(vp->voc_distance);
|
auto rolloff = GetRolloff(vp->voc_distance);
|
||||||
FVector3 spos = pos ? GetSoundPos(pos) : FVector3(0, 0, 0);
|
FVector3 spos = pos ? GetSoundPos(pos) : FVector3(0, 0, 0);
|
||||||
soundEngine->StartSound(sourcetype, source, &spos, CHAN_BODY, cflags, num, 1.f, ATTN_NORM, &rolloff, S_ConvertPitch(pitch));
|
soundEngine->StartSound(sourcetype, source, &spos, channel, cflags, num, 1.f, ATTN_NORM, &rolloff, S_ConvertPitch(pitch));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue