Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineCookiePath ¶
func DetermineSocketPath ¶
DetermineSocketPath resolves a file in the PulseAudio runtime path E.g. pass "native" to get the address for pulse' native socket Original implementation: https://github.com/pulseaudio/pulseaudio/blob/6c58c69bb6b937c1e758410d3114fc3bc0606fbe/src/pulsecore/core-util.c Except we do not support legacy $HOME paths
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client maintains a connection to the PulseAudio server.
func NewClient ¶
func NewClient(co *ClientOptions) (*Client, error)
func (*Client) Close ¶
func (c *Client) Close()
Close closes the connection to PulseAudio server and makes the Client unusable.
type ClientOptions ¶
type ClientOptions struct {
// contains filtered or unexported fields
}
func NewClientOptions ¶
func NewClientOptions(options ...Option) (*ClientOptions, error)
type Option ¶
type Option func(*ClientOptions)
func WithApplicationLanguage ¶
func WithApplicationName ¶
func WithCookiePath ¶
func WithSocketPath ¶
func WithX11Display ¶
Click to show internal directories.
Click to hide internal directories.