Documentation ¶
Index ¶
Constants ¶
View Source
const ( PlayerLibcanberra = "libcanberra" PlayerMPV = "mpv" PlayerPaplay = "paplay" )
Variables ¶
This section is empty.
Functions ¶
func PlaySoundFile ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.