Documentation ¶
Index ¶
- Constants
- func BoolToInt(b types.BitBool) int
- func InitJackClient(name string, prc jack.PortRegistrationCallback, sc jack.ShutdownCallback, ...) (*jack.Client, error)
- func Max(a, b int) int
- func RetryWithBackoff(run func() error) error
- func VolumeString(vol int, mute types.BitBool) string
- func WaitForJackd() error
Constants ¶
View Source
const ( // RetryMaxAttempts sets the maximum number of attempts when retrying RetryMaxAttempts = 10 // RetryBackoffFactor sets the exponential backoff factor on wait duration RetryBackoffFactor = 2 // RetryBackoffMax sets the maximum wait duration between retry attempts RetryBackoffMax = 10000 // milliseconds )
Variables ¶
This section is empty.
Functions ¶
func InitJackClient ¶
func InitJackClient(name string, prc jack.PortRegistrationCallback, sc jack.ShutdownCallback, pc jack.ProcessCallback, preActivationMethod func(client *jack.Client), close bool) (*jack.Client, error)
InitJackClient creates a new JACK client
func RetryWithBackoff ¶
RetryWithBackoff implements a retry-loop with an expontential backoff algorithm
func VolumeString ¶
VolumeString returns a percentage string for volume controls
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.