Swaptrackslot

From EDukeWiki
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.