mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 03:40:49 +00:00
Play player voices locally
This commit is contained in:
parent
449eca4fb4
commit
4a078725d4
@ -392,7 +392,13 @@ namespace MWSound
|
|||||||
mVFS->normalizeFilename(voicefile);
|
mVFS->normalizeFilename(voicefile);
|
||||||
DecoderPtr decoder = loadVoice(voicefile, &loudness);
|
DecoderPtr decoder = loadVoice(voicefile, &loudness);
|
||||||
|
|
||||||
MWBase::SoundPtr sound = mOutput->streamSound3D(decoder,
|
MWBase::SoundPtr sound;
|
||||||
|
if(ptr == MWMechanics::getPlayer())
|
||||||
|
sound = mOutput->streamSound(decoder,
|
||||||
|
basevol, 1.0f, Play_Normal|Play_TypeVoice|Play_2D
|
||||||
|
);
|
||||||
|
else
|
||||||
|
sound = mOutput->streamSound3D(decoder,
|
||||||
objpos, 1.0f, basevol, 1.0f, minDistance, maxDistance,
|
objpos, 1.0f, basevol, 1.0f, minDistance, maxDistance,
|
||||||
Play_Normal|Play_TypeVoice|Play_3D
|
Play_Normal|Play_TypeVoice|Play_3D
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user