sound

package
v0.0.0-...-dddda54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayerLibcanberra = "libcanberra"
	PlayerMPV         = "mpv"
	PlayerPaplay      = "paplay"
)

Variables

This section is empty.

Functions

func PlaySoundFile

func PlaySoundFile(file, device, driver, player string) error

PlaySoundFile: play sound file @file : the file which needed to play @device: the special backend card, default: the current sound card @driver: the special backend driver, as: 'pulse','alsa','null' ...

default: 'pulse'

@player: the special sound play method, as: 'libcanberra','mpv','paplay'

if empty or other value, just as 'libcanberra'

return: the error message

func PlayThemeSound

func PlayThemeSound(theme, event, device, driver, player string) error

PlayThemeSound: play sound theme event @theme : the special sound theme @event : the special theme event id @device: the special backend card, default: the current sound card @driver: the special backend driver, as: 'pulse','alsa','null' ...

default: 'pulse'

@player: the special sound play method, as: 'libcanberra','mpv','paplay'

if empty or other value, just as 'libcanberra'

return: the error message

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL