mIRC Home    About    Download    Register    News    Help

Topic Options
#265269 - 25/03/19 12:59 AM Multi layer sounds
_entropy Offline
Ameglian cow

Registered: 24/08/15
Posts: 34
I would really like to be able to play different "layers" of sounds, many at a time. Please add this feature!

Edited by _entropy (25/03/19 01:02 AM)
mIRC Scripts Website: https://mircscripts.net - Register today!

#265270 - 25/03/19 01:08 AM Re: Multi layer sounds [Re: _entropy]
Raccoon Offline
Hoopy frood

Registered: 18/02/03
Posts: 2597
That'd be pretty cool, especially for Picture Window games.

/splay -b <filename>
The -b switch would blend a sound instead of stopping any currently playing sound(s), so they overlap.

Queued (-q) sounds would still wait in queue until any currently playing sound(s) stop playing. If you use -b and -q together, you would be able to queue any blendable sounds after a non-blended sound that's already in queue, so that they both play together.

/splay sound1a.wav
/splay -b sound1b.wav
/splay -q sound2a.wav
/splay -qb sound2b.wav
/splay -q sound3.wav

Could also add another layer for background music that plays behind anything else that's playing or queued, with a -B flag. And -l to loop it.

/splay -Bl bgmusic.mid

Another approach would be to add an optional name to a playing sound layer, like timers.

/splay bgmusic -Bl greenhillzone.mid
/splay sfx sound1a.wav
/splay sfx -b sound1b.wav
/splay bgmusic stop
/splay bgmusic -Bl levelselect.mid

The default layer would be named "default".
Well. At least I won lunch.
Good philosophy, see good in bad, I like!