OpenBVE icon indicating copy to clipboard operation
OpenBVE copied to clipboard

[Request] Making a "numberOfActiveSounds" / "numberOfCurrentlyPlayingSounds" .animated variable

Open BPI-919 opened this issue 3 years ago • 1 comments

Description

Hi,

I have just thought a new .animated variable would be useful, at least for me like this:

numberOfCurrentlyPlayingSounds: It returns with the number of the currently playing (active) sounds

I don't know whether creating this variable with its proper operation, would be feasible?

Thanks, Andrew

BPI-919 avatar Oct 02 '22 21:10 BPI-919

That's easy enough, although I'm not sure it'll actually get you what you want- Any more details as to what you're trying to achieve? It's also system/ user config specific as to the max number of concurrent sounds.

If you look in the F10 debug info, this has the number of currently playing sounds. Let me know if this number is workable for you before I add something.

leezer3 avatar Oct 02 '22 21:10 leezer3