Documentation ¶
Index ¶
- Constants
- Variables
- func Begin()
- func Init(loglevel logger.Loglevel, address string, forceTcpTunnelMode bool)
- func Pause()
- func Play(t *Track) bool
- func Resume()
- func SendMessageToChannel(msg string, channelid uint32)
- func SendMessageToUser(msg string, userid uint32)
- func Stop()
- func SwitchChannel(channelid uint32)
- func WriteInt16InFile(path string, buffer []int16)
- type ChannelMessageReceivedEvent
- type PrivateMessageReceivedEvent
- type Track
- type TrackExceptionEvent
- type TrackFinishedEvent
- type TrackPausedEvent
- type TrackStoppedEvent
- type UserState
Constants ¶
View Source
const ( CELTAplha = iota Ping Speex CELTBeta OPUS )
constants for audiotypes of mumble
View Source
const ( TRACK_TYPE_YOUTUBE = iota TRACK_TYPE_OGGFILE )
Variables ¶
View Source
var Listener listener
Functions ¶
func Init ¶
Initializes some settings for gomble and returns an Eventhandler which can be used to add event-listeners loglevel the loglevel to use e.g. logger.DEBUG, logger.INFO, logger.WARN, logger.ERROR, logger.FATAL addr the address of the mumble-server written like "192.168.178.150:64738"
func SendMessageToChannel ¶ added in v0.4.0
send Message to the user
func SendMessageToUser ¶ added in v0.4.0
send Message to the user
func SwitchChannel ¶ added in v0.4.0
func SwitchChannel(channelid uint32)
func WriteInt16InFile ¶
write int16 buffer in file of path with offset
Types ¶
type Track ¶ added in v0.2.0
type Track struct { // Never ever change that outside of this source file Done bool // contains filtered or unexported fields }
func GetCurrentTrack ¶ added in v0.2.0
func GetCurrentTrack() *Track
type TrackExceptionEvent ¶ added in v0.2.0
type TrackExceptionEvent struct { Track *Track // contains filtered or unexported fields }
Some other failure occurred. The Logs should be checked for further Information
type TrackFinishedEvent ¶ added in v0.2.0
type TrackFinishedEvent struct {
Track *Track
}
Track Finished playing
type TrackPausedEvent ¶ added in v0.2.0
type TrackPausedEvent struct {
Track *Track
}
Track got paused
type TrackStoppedEvent ¶ added in v0.2.0
type TrackStoppedEvent struct {
Track *Track
}
Track got interrupted/stopped by user
Source Files ¶
Click to show internal directories.
Click to hide internal directories.