spa

package
v0.0.0-...-3ccb3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package spa provides types that implement the Simple Plugin API, as documented in:

https://docs.pipewire.org/page_spa.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type POD

type POD struct {
	Size uint32 // size of the body in bytes.
	Type Type   // type of the POD
}

type Type

type Type uint32

Type describes SPA types.

const (
	TypeSTART Type = 0x00000 + iota
	TypeNone
	TypeBool
	TypeID
	TypeInt
	TypeLong
	TypeFloat
	TypeDouble
	TypeString
	TypeBytes
	TypeRectangle
	TypeFraction
	TypeBitmap
	TypeArray
	TypeStruct
	TypeObject
	TypeSequence
	TypePointer
	TypeFd
	TypeChoice
	TypePod
	TypeLAST

	TypePointerSTART Type = 0x10000 + iota
	TypePointerBuffer
	TypePointerMeta
	TypePointerDict
	TypePointerLAST

	/* Events */
	TypeEventSTART Type = 0x20000 + iota
	TypeEventDevice
	TypeEventNode
	TypeEventLAST /**< not part of ABI */

	/* Commands */
	TypeCommandSTART Type = 0x30000 + iota
	TypeCommandDevice
	TypeCommandNode
	TypeCommandLAST /**< not part of ABI */

	/* Objects */
	TypeObjectSTART Type = 0x40000 + iota
	TypeObjectPropInfo
	TypeObjectProps
	TypeObjectFormat
	TypeObjectParamBuffers
	TypeObjectParamMeta
	TypeObjectParamIO
	TypeObjectParamProfile
	TypeObjectParamPortConfig
	TypeObjectParamRoute
	TypeObjectProfiler
	TypeObjectParamLatency
	TypeObjectParamProcessLatency
	TypeObjectParamTag
	TypeObjectLAST /**< not part of ABI */

	/* vendor extensions */
	TypeVendorPipeWire Type = 0x02000000

	TypeVendorOther Type = 0x7f000000
)

func (Type) String

func (i Type) String() string

type TypeInfo

type TypeInfo struct {
	Type   Type
	Parent Type
	Name   string
	Values []TypeInfo
}

Jump to

Keyboard shortcuts

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