Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implements audio output using the Windows Audio Session API (WASAPI) in shared mode with event-driven buffering.
The driver uses COM interfaces via syscall.SyscallN (zero CGO). A dedicated goroutine (locked to its OS thread) owns all COM state: initialization, the audio pull loop, and teardown.
func (*Driver) Close ¶
Close stops playback, signals the audio goroutine to exit, and waits for COM cleanup to finish.
func (*Driver) Open ¶
Open initializes COM on a dedicated OS thread, obtains the default audio playback device, and prepares a shared-mode WASAPI stream. The stream does not begin playing until Start is called.
func (*Driver) SetSource ¶
SetSource sets the audio data source. The driver pulls from this source in its audio loop.