audiobaitclient

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorParsingOutput = errors.New("error with parsing dbus output")

Functions

func PlayFromId

func PlayFromId(audioFileId, volume, priority int, event *eventclient.Event) (played bool, err error)

PlayFromId lets you make a request to audiobait to play an audio file. audioFileId: ID of the audio file. Audio files available and there IDs can be found using audiofilelibrary. volume: Volume to play the sound at from 1 to 10. Values over 10 can be used but the quality might decrease. priority: //TODO event: Event that will get logged when played. The audioFileID, volume, priority, and time will automatically get added to the event.

If left null no event will be logged.

func PlayTestSound

func PlayTestSound(volume int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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