Method CreateSource
CreateSource(bool, bool, float)
Creates a new mixer source whose playback queue can be controlled independently of any other source mixed into the output stream.
public MixerSourceContext CreateSource(bool looping, bool playing, float initialGain = 1)
Parameters
loopingboolTrue to loop the playback queue continuously; otherwise playback stops once all queued buffers have played.
playingboolTrue to start the source playing immediately; otherwise the source starts paused.
initialGainfloatThe initial source gain, where 1 represents the original signal amplitude.
Returns
- MixerSourceContext
A new MixerSourceContext used to queue buffers into the source and control its playback.