Versions in this module Expand all Collapse all v1 v1.0.260758 Jul 30, 2026 Changes in this version + const Channels + const SampleRate + func Available() bool + type AudioEvent struct + Ended bool + Err error + type AudioStream struct + PCM chan []int16 + func DecodeAudio(path string, onChunk func([]int16), events chan<- AudioEvent) (*AudioStream, error) + func DecodeAudioAt(path string, seek time.Duration, onChunk func([]int16), ...) (*AudioStream, error) + func (s *AudioStream) Stop() + type VideoEvent struct + Ended bool + Err error + type VideoFrame struct + H int + Pix []byte + W int + func (f VideoFrame) Image() image.Image + type VideoStream struct + Frames chan VideoFrame + func DecodeVideo(path string, w, h, fps int, events chan<- VideoEvent) (*VideoStream, error) + func DecodeVideoAt(path string, seek time.Duration, w, h, fps int, events chan<- VideoEvent) (*VideoStream, error) + func (s *VideoStream) Stop()