LSPDFR-API
LSPDFR-API copied to clipboard
Add flag to PlayScannerAudio to force audio to play
Sometimes users can miss important information if a scanner audio message doesn't play, while other scanner audio is superfluous. Right now, PlayScannerAudio
will just not play your audio if some other scanner audio is already playing when you call it, and there's no way to ensure that some other audio isn't already playing.
I'd like an overload on PlayScannerAudio
and PlayScannerAudioUsingPosition
to force the audio to play, even if it has to wait a bit until the previous audio is finished. Just a bool
as an additional parameter.
Also, it occurs to me that PlayScannerAudioUsingPosition
could be eliminated and just included as an overload as PlayScannerAudio(string, Vector3)
.
It might even be better to implement something like QueueScannerAudio() which just waits until the current audio(if any) has finished playing.