Documentation
¶
Overview ¶
Package output it responsible for preparing the sounds for human consumption, whether audio, visual or other means.
Index ¶
- Constants
- func Play(s sounds.Sound)
- type PulseContext
- func (self *PulseContext) Disconnect()
- func (self *PulseContext) Dispose()
- func (self *PulseContext) Drain() int
- func (self *PulseContext) ExitDaemon() int
- func (self *PulseContext) NewStream(name string, spec *PulseSampleSpec) *PulseStream
- func (self *PulseContext) SetDefaultSink(name string) int
- func (self *PulseContext) SetDefaultSource(name string) int
- type PulseMainLoop
- type PulseSampleSpec
- type PulseStream
- func (self *PulseStream) ConnectToSink() int
- func (self *PulseStream) Disconnect()
- func (self *PulseStream) Dispose()
- func (self *PulseStream) Drain()
- func (self *PulseStream) GetSampleSpec() PulseSampleSpec
- func (self *PulseStream) WritableSize() int
- func (self *PulseStream) Write(data interface{}, flags int) int
Constants ¶
View Source
const ( CONTEXT_UNCONNECTED = C.PA_CONTEXT_UNCONNECTED CONTEXT_CONNECTING = C.PA_CONTEXT_CONNECTING CONTEXT_AUTHORIZING = C.PA_CONTEXT_AUTHORIZING CONTEXT_SETTING_NAME = C.PA_CONTEXT_SETTING_NAME CONTEXT_READY = C.PA_CONTEXT_READY CONTEXT_FAILED = C.PA_CONTEXT_FAILED CONTEXT_TERMINATED = C.PA_CONTEXT_TERMINATED )
View Source
const ( STREAM_UNCONNECTED = C.PA_STREAM_UNCONNECTED STREAM_CREATING = C.PA_STREAM_CREATING STREAM_READY = C.PA_STREAM_READY STREAM_FAILED = C.PA_STREAM_FAILED STREAM_TERMINATED = C.PA_STREAM_TERMINATED )
View Source
const ( CONTEXT_NOFLAGS = C.PA_CONTEXT_NOFLAGS CONTEXT_NOAUTOSPAWN = C.PA_CONTEXT_NOAUTOSPAWN CONTEXT_NOFAIL = C.PA_CONTEXT_NOFAIL )
View Source
const ( STREAM_NOFLAGS = C.PA_STREAM_NOFLAGS STREAM_START_CORKED = C.PA_STREAM_START_CORKED STREAM_INTERPOLATE_TIMING = C.PA_STREAM_INTERPOLATE_TIMING STREAM_NOT_MONOTONIC = C.PA_STREAM_NOT_MONOTONIC STREAM_AUTO_TIMING_UPDATE = C.PA_STREAM_AUTO_TIMING_UPDATE STREAM_NO_REMAP_CHANNELS = C.PA_STREAM_NO_REMAP_CHANNELS STREAM_NO_REMIX_CHANNELS = C.PA_STREAM_NO_REMIX_CHANNELS STREAM_FIX_FORMAT = C.PA_STREAM_FIX_FORMAT STREAM_FIX_RATE = C.PA_STREAM_FIX_RATE STREAM_FIX_CHANNELS = C.PA_STREAM_FIX_CHANNELS STREAM_DONT_MOVE = C.PA_STREAM_DONT_MOVE STREAM_VARIABLE_RATE = C.PA_STREAM_VARIABLE_RATE STREAM_PEAK_DETECT = C.PA_STREAM_PEAK_DETECT STREAM_START_MUTED = C.PA_STREAM_START_MUTED STREAM_ADJUST_LATENCY = C.PA_STREAM_ADJUST_LATENCY STREAM_EARLY_REQUESTS = C.PA_STREAM_EARLY_REQUESTS STREAM_DONT_INHIBIT_AUTO_SUSPEND = C.PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND STREAM_START_UNMUTED = C.PA_STREAM_START_UNMUTED STREAM_FAIL_ON_SUSPEND = C.PA_STREAM_FAIL_ON_SUSPEND )
View Source
const ( OK = C.PA_OK ERR_ACCESS = C.PA_ERR_ACCESS ERR_COMMAND = C.PA_ERR_COMMAND ERR_INVALID = C.PA_ERR_INVALID ERR_EXIST = C.PA_ERR_EXIST ERR_NOENTITY = C.PA_ERR_NOENTITY ERR_CONNECTIONREFUSED = C.PA_ERR_CONNECTIONREFUSED ERR_PROTOCOL = C.PA_ERR_PROTOCOL ERR_TIMEOUT = C.PA_ERR_TIMEOUT ERR_AUTHKEY = C.PA_ERR_AUTHKEY ERR_INTERNAL = C.PA_ERR_INTERNAL ERR_CONNECTIONTERMINATED = C.PA_ERR_CONNECTIONTERMINATED ERR_KILLED = C.PA_ERR_KILLED ERR_INVALIDSERVER = C.PA_ERR_INVALIDSERVER ERR_MODINITFAILED = C.PA_ERR_MODINITFAILED ERR_BADSTATE = C.PA_ERR_BADSTATE ERR_NODATA = C.PA_ERR_NODATA ERR_VERSION = C.PA_ERR_VERSION ERR_TOOLARGE = C.PA_ERR_TOOLARGE ERR_NOTSUPPORTED = C.PA_ERR_NOTSUPPORTED ERR_UNKNOWN = C.PA_ERR_UNKNOWN ERR_NOEXTENSION = C.PA_ERR_NOEXTENSION ERR_OBSOLETE = C.PA_ERR_OBSOLETE ERR_NOTIMPLEMENTED = C.PA_ERR_NOTIMPLEMENTED ERR_FORKED = C.PA_ERR_FORKED ERR_IO = C.PA_ERR_IO ERR_BUSY = C.PA_ERR_BUSY ERR_MAX = C.PA_ERR_MAX )
View Source
const ( SEEK_RELATIVE = C.PA_SEEK_RELATIVE SEEK_ABSOLUTE = C.PA_SEEK_ABSOLUTE SEEK_RELATIVE_ON_READ = C.PA_SEEK_RELATIVE_ON_READ SEEK_RELATIVE_END = C.PA_SEEK_RELATIVE_END )
View Source
const ( SAMPLE_U8 = C.PA_SAMPLE_U8 SAMPLE_ALAW = C.PA_SAMPLE_ALAW SAMPLE_ULAW = C.PA_SAMPLE_ULAW SAMPLE_S16LE = C.PA_SAMPLE_S16LE SAMPLE_S16BE = C.PA_SAMPLE_S16BE SAMPLE_FLOAT32LE = C.PA_SAMPLE_FLOAT32LE SAMPLE_FLOAT32BE = C.PA_SAMPLE_FLOAT32BE SAMPLE_S32LE = C.PA_SAMPLE_S32LE SAMPLE_S32BE = C.PA_SAMPLE_S32BE SAMPLE_S24LE = C.PA_SAMPLE_S24LE SAMPLE_S24BE = C.PA_SAMPLE_S24BE SAMPLE_S24_32LE = C.PA_SAMPLE_S24_32LE SAMPLE_S24_32BE = C.PA_SAMPLE_S24_32BE SAMPLE_MAX = C.PA_SAMPLE_MAX SAMPLE_INVALID = C.PA_SAMPLE_INVALID )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PulseContext ¶
type PulseContext struct { MainLoop *PulseMainLoop // contains filtered or unexported fields }
func (*PulseContext) Disconnect ¶
func (self *PulseContext) Disconnect()
func (*PulseContext) Dispose ¶
func (self *PulseContext) Dispose()
func (*PulseContext) Drain ¶
func (self *PulseContext) Drain() int
func (*PulseContext) ExitDaemon ¶
func (self *PulseContext) ExitDaemon() int
func (*PulseContext) NewStream ¶
func (self *PulseContext) NewStream(name string, spec *PulseSampleSpec) *PulseStream
func (*PulseContext) SetDefaultSink ¶
func (self *PulseContext) SetDefaultSink(name string) int
func (*PulseContext) SetDefaultSource ¶
func (self *PulseContext) SetDefaultSource(name string) int
type PulseMainLoop ¶
type PulseMainLoop struct {
// contains filtered or unexported fields
}
func NewPulseMainLoop ¶
func NewPulseMainLoop() *PulseMainLoop
func (*PulseMainLoop) Dispose ¶
func (self *PulseMainLoop) Dispose()
func (*PulseMainLoop) NewContext ¶
func (self *PulseMainLoop) NewContext(name string, flags int) *PulseContext
func (*PulseMainLoop) Start ¶
func (self *PulseMainLoop) Start() int
type PulseSampleSpec ¶
type PulseStream ¶
type PulseStream struct { Context *PulseContext // contains filtered or unexported fields }
func (*PulseStream) ConnectToSink ¶
func (self *PulseStream) ConnectToSink() int
func (*PulseStream) Disconnect ¶
func (self *PulseStream) Disconnect()
func (*PulseStream) Dispose ¶
func (self *PulseStream) Dispose()
func (*PulseStream) Drain ¶
func (self *PulseStream) Drain()
func (*PulseStream) GetSampleSpec ¶
func (self *PulseStream) GetSampleSpec() PulseSampleSpec
func (*PulseStream) WritableSize ¶
func (self *PulseStream) WritableSize() int
func (*PulseStream) Write ¶
func (self *PulseStream) Write(data interface{}, flags int) int
Click to show internal directories.
Click to hide internal directories.