Page MenuHomeFeedback Tracker

[Feature Request] Allow playSoundUI to be stopped
Closed, ResolvedPublic

Description

Reasoning:

playSoundUI is the only way to play during briefing and debriefing phase any audio - quite unfortunate its not more flexible. its very powerful for voice over or music use in these phases or also mid mission to make sure you have best volume to understand conversations. yet if people want to skip or mute, cant be done atm is seems 😦

only playSoundUI works in debriefing phase or debriefing phase, and its best for conversations atm - only downside is you cannot stop/cancel or adjust their volume (only with the next event)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

Suggested approach by KK

playSoundUI and playSound3D return id and then you can skip arbitrary number of seconds when wav is playing using this id, or finish the playing altogether with -1

Event Timeline

Revision: 150323

https://community.bistudio.com/wiki/soundParams
https://community.bistudio.com/wiki/stopSound

As usual please test thoroughly and report any issues ASAP

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 24 2023, 3:33 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
h- added a subscriber: h-.Feb 24 2023, 6:52 PM
dedmen set Ref Ticket to AIII-55569.Mar 1 2023, 1:43 PM

@Killzone_Kid sorry for the late reply!

both commands work fine and as expected given the BIKI description

volume: Number - playback volume

only this i dont get yet. it returns 3.15, while the config definition is set to 5.

is it a mix with some other volume modifier? or does it reach it from the source wss/ogg?

["soundParams",["PATH\FILE.ogg",0,69.6,0,3.15479]]

class XXX
{
	sound[] = {"@PATH\FILE.ogg",5,1};
	titles[] = {0,""};
};

how do you play the sound?

WW2_SITREP_Short_ID = playSoundUI [WW2_SITREP_Short];

in briefing phase (time < 1) (via init.sqf)

WW2_SITREP_Short what is?

@Killzone_Kid The XXX cfgSounds definition shown above as part of the mission desc.ext.

so you playSoundUI a class name from mission config? What audioOptions show for UI

kju-PvPscene closed this task as Resolved.Feb 10 2024, 9:29 PM
kju-PvPscene claimed this task.