Swaptrackslot: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''setmusicposition''' <volume> <level>
'''swaptrackslot''' <volume> <level>


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


This is a helper function achieves the same as [[getmusicposition]] -> [[starttrack]] -> [[setmusicposition]] in one go
This is a helper function comparable to [[getmusicposition]] -> [[starttrack]] -> [[setmusicposition]] but with extra precautions taken to avoid stuttering in the music.


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Sound manipulation]]
[[Category:Sound manipulation]]

Revision as of 21:16, 9 July 2025

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.