LSPDFR-API icon indicating copy to clipboard operation
LSPDFR-API copied to clipboard

Add flag to PlayScannerAudio to force audio to play

Open pnwparksfan opened this issue 8 years ago • 1 comments

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).

pnwparksfan avatar Jul 07 '16 04:07 pnwparksfan

It might even be better to implement something like QueueScannerAudio() which just waits until the current audio(if any) has finished playing.

khori0 avatar Aug 28 '16 19:08 khori0