How to manage delayed playbacks
Active DJ Studio allows setting up a list of sound files whose playback can be programmed to start after a given delay through a set of methods of the
DelayedPlayback COM object.
If time positioning and duration of a certain item should overlap with the time positioning and duration of an existing item, you could decide if accepting or denying its insertion inside the list through the
DelayedPlayback.AllowOverlapping property: if overlapping shouldn't be allowed, an ERR_DELAYED_PLAYBACK_OVERLAP error would be generated in case of overlapping. Note that, in case of overlapping, the playing song would be immediately stopped without any kind of fade-out when an overlapped song should be started.
As already mentioned, each item is identified through its unique identifier: this identifier is passed as a parameter for accessing the following item's related features:
Start an immediate playback of the item through the DelayedPlayback.ItemPlayNow method with the option to keep it or remove it from the list