AudioQueue - Axwabo/SecretLabNAudio GitHub Wiki

AudioQueue

This audio processor concatenates providers similarly to ConcatenatingSampleProvider while managing resources and allowing for dynamic addition & skipping.

When a provider ends, it will be followed by the next one (unless if the queue is empty).

You can call the Next method at any time to skip the current provider.

Various extension methods exist to enqueue inputs.

[!IMPORTANT] When enqueueing a provider, its WaveFormat must match of the AudioQueue

AudioPlayer extension methods handle format conversion for you.

Before enqueueing a provider in an arbitrary AudioQueue, call ProviderToProcessor.SampleProviderToProcessor(provider).ToFormat(queue.WaveFormat)