Swaptrackslot

From EDukeWiki
Revision as of 21:18, 9 July 2025 by Hendricks266 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

swaptrackslot <volume> <level>

Swaps current track with another one while attempting to keep the seek position.

This is a helper function comparable to getmusicposition -> starttrack -> setmusicposition but with extra precautions taken to avoid stuttering in the music, particularly when combined with preloadtrackslotforswap.