Documentation ¶
Index ¶
Constants ¶
View Source
const ( SampleFormatU8 = C.PA_SAMPLE_U8 SampleFormatS16NE = C.PA_SAMPLE_S16NE SampleFormatS16LE = C.PA_SAMPLE_S16LE SampleFormatS16BE = C.PA_SAMPLE_S16BE SampleFormatFloat32LE = C.PA_SAMPLE_FLOAT32LE SampleFormatFloat32BE = C.PA_SAMPLE_FLOAT32BE SampleFormatS32LE = C.PA_SAMPLE_S32LE SampleFormatS32BE = C.PA_SAMPLE_S32BE )
View Source
const (
StreamDirectionPlayback = C.PA_STREAM_PLAYBACK
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func NewConn ¶
func NewConn(server, name string, dir StreamDirection, dev, streamName string, sampleSpec *SampleSpec) (Conn, error)
server: server name, empty for default name: A descriptive name for this client, application name dir: Open this stream for recording or playback? dev: sink or source name, empty for default streamName: A descriptive name for this stream (application name, song title, ...) sampleSpec: The sample type to use
type SampleFormat ¶
type SampleFormat uint
type SampleSpec ¶
type SampleSpec struct { Format SampleFormat Rate uint32 Channels uint8 }
type StreamDirection ¶
type StreamDirection uint
Click to show internal directories.
Click to hide internal directories.