Teek::SDL2::AudioStream Class
Push-based real-time PCM audio output.
AudioStream wraps an SDL2 audio device for streaming raw PCM
samples. Unlike Sound and Music (which play from files),
AudioStream lets you generate or decode audio in real-time and
push it directly to the speakers.
The stream starts paused. Queue some initial data, then call
#resume to begin playback. Use #queued_samples to monitor
the buffer level and pace your audio generation.
Inherits: Object