A voice that is able to host and switch between different players.
Setting the socket to a new player will load from disk (if needed), prepareForPlay and spawn.
Players are played using an EnvelopedPlayer so that when the socket releases the voice (to end it or to switch to the next incoming player being played in the socket) the outgoing player is released cleanly. The EnvelopedPlayer also protects against NaN, inf and de-normalized floats, so if anything blows up in the channel it will not propgate up the mixer chain.
the default releaseTime is 0.0 which will stop immediately.
Arguments:
rate |
all players should be the same rate |
numChannels |
all players should have the same numChannels. |
round |
if calling qspawnPlayer this is the timing quantization setting |
env |
the Envelope for the internal EnvelopedPlayer |
you should have already prepared the player
Arguments:
player | |
releaseTime | |
beatDelta | |
forceRespawn | |
you should have already prepared the player
Arguments:
restart the currently playing player
Arguments:
release the currently playing player voice
Arguments:
Testing short time intervals
As an input to a Patch