Versions in this module Expand all Collapse all v0 v0.2.27 Apr 28, 2021 v0.2.26 Apr 28, 2021 Changes in this version + const BigEndian + const DefaultRate + const LittleEndian + var TypeFormat = glib.Type(C.gst_audio_format_get_type()) + func AreValidChannelPositions(positions []ChannelPosition, forceOrder bool) bool + func ChannelPositionsToMask(positions []ChannelPosition, forceOrder bool) (mask uint64, ok bool) + func ChannelPositionsToString(positions []ChannelPosition) string + func ChannelPositionsToValidOrder(positions []ChannelPosition) (ok bool) + func ClipBuffer(buffer *gst.Buffer, segment *gst.Segment, rate, bytesPerFrame int) *gst.Buffer + func DurationToFrames(dur time.Duration, rate int) int + func FramesToDuration(frames, rate int) time.Duration + func GetFallbackChannelMask(channels int) uint64 + func MakeRawCaps(formats []Format, layout Layout) *gst.Caps + func ReorderChannels(buffer *gst.Buffer, format Format, from []ChannelPosition, ...) bool + func TruncateBuffer(buffer *gst.Buffer, bytesPerFrame int, trim, samples int64) *gst.Buffer + type Buffer struct + func MapBuffer(info *Info, buffer *gst.Buffer, flags gst.MapFlags) (*Buffer, bool) + func (b *Buffer) NumPlanes() int + func (b *Buffer) NumSamples() int64 + func (b *Buffer) Planes() [][]byte + func (b *Buffer) Unmap() + func (b *Buffer) WritePlane(idx int, data []byte) + type ChannelPosition int + const ChannelPositionBottomFrontCenter + const ChannelPositionBottomFrontLeft + const ChannelPositionBottomFrontRight + const ChannelPositionFrontCenter + const ChannelPositionFrontLeft + const ChannelPositionFrontLeftOfCenter + const ChannelPositionFrontRight + const ChannelPositionFrontRightOfCenter + const ChannelPositionInvalid + const ChannelPositionLFE1 + const ChannelPositionLFE2 + const ChannelPositionMono + const ChannelPositionNone + const ChannelPositionRearCenter + const ChannelPositionRearLeft + const ChannelPositionRearRight + const ChannelPositionSideLeft + const ChannelPositionSideRight + const ChannelPositionSurroundLeft + const ChannelPositionSurroundRight + const ChannelPositionTopCenter + const ChannelPositionTopFrontCenter + const ChannelPositionTopFrontLeft + const ChannelPositionTopFrontRight + const ChannelPositionTopRearCenter + const ChannelPositionTopRearLeft + const ChannelPositionTopRearRight + const ChannelPositionTopSideLeft + const ChannelPositionTopSideRight + const ChannelPositionWideLeft + const ChannelPositionWideRight + func ChannelPositionsFromMask(channels int, mask uint64) []ChannelPosition + func (c ChannelPosition) String() string + type Flags int + const FlagNone + const FlagUnpositioned + type Format int + const DefaultFormat + const FormatEncoded + const FormatF32 + const FormatF32BE + const FormatF32LE + const FormatF64 + const FormatF64BE + const FormatF64LE + const FormatS16 + const FormatS16BE + const FormatS16LE + const FormatS18 + const FormatS18BE + const FormatS18LE + const FormatS20 + const FormatS20BE + const FormatS20LE + const FormatS2332BE + const FormatS24 + const FormatS2432 + const FormatS2432LE + const FormatS24BE + const FormatS24LE + const FormatS32 + const FormatS32BE + const FormatS32LE + const FormatS8 + const FormatU16 + const FormatU16BE + const FormatU16LE + const FormatU18 + const FormatU18BE + const FormatU18LE + const FormatU20 + const FormatU20BE + const FormatU20LE + const FormatU24 + const FormatU2432 + const FormatU2432BE + const FormatU2432LE + const FormatU24BE + const FormatU24LE + const FormatU32 + const FormatU32BE + const FormatU32LE + const FormatU8 + const FormatUnknown + func FormatFromInteger(signed bool, endianness, width, depth int) Format + func FormatFromString(format string) Format + func RawFormats() []Format + func (f Format) Info() *FormatInfo + func (f Format) String() string + func (f Format) ToGValue() (*glib.Value, error) + type FormatFlags int + const FormatFlagComplex + const FormatFlagFloat + const FormatFlagInteger + const FormatFlagSigned + const FormatFlagUnpack + type FormatInfo struct + func (f *FormatInfo) Depth() int + func (f *FormatInfo) Description() string + func (f *FormatInfo) Endianness() int + func (f *FormatInfo) Flags() FormatFlags + func (f *FormatInfo) Format() Format + func (f *FormatInfo) Name() string + func (f *FormatInfo) Silence() []byte + func (f *FormatInfo) UnpackFormat() Format + func (f *FormatInfo) Width() int + type Info struct + func InfoFromCaps(caps *gst.Caps) (*Info, bool) + func NewInfo() *Info + func (i *Info) BPF() int + func (i *Info) Channels() int + func (i *Info) Convert(srcFmt gst.Format, srcVal int64, destFmt gst.Format) (int64, bool) + func (i *Info) Copy() *Info + func (i *Info) Flags() Flags + func (i *Info) FormatInfo() *FormatInfo + func (i *Info) Free() + func (i *Info) Init() + func (i *Info) IsEqual(info *Info) bool + func (i *Info) Layout() Layout + func (i *Info) Positions() []ChannelPosition + func (i *Info) Rate() int + func (i *Info) SetFormat(format Format, rate int, positions []ChannelPosition) + func (i *Info) ToCaps() *gst.Caps + type Layout int + const LayoutInterleaved + const LayoutNonInterleaved + type PackFlags int + const PackFlagNone + const PackFlagTruncateRange