Page MenuHomeFeedback Tracker

[Feature Request] New scripting command: soundDuration
New, NormalPublic

Description

For returning the duration of the given sound, in seconds.
Would be of course quite kewl if it supported all the possible ways you can have sound in the game: path to soundfile, CfgSounds/SFX/etc class, and so on.

_dur = soundDuration "A3\Sounds_F\sfx\alarm";
_dur = soundDuration "BattlefieldExplosions1_3D";
_dur = soundDuration "mp_groundsupport_05_casaborted_BHQ_0";

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Engine

Event Timeline

h- created this task.Jul 13 2020, 10:18 AM
h- added a comment.Jul 15 2021, 4:11 PM

Yet another shameless bump.
Just to note just the first soundDuration <file> would suffice obviously, the rest was just crazy talk...

I suppose the supported formats would be what the game supports; .wss, .wav, .mp3 and .ogg 🤔