block

package
Version: v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginTypeVST = FXPluginType{'P', 's', 't', 'V'}
	PluginTypeDMO = FXPluginType{'O', 'M', 'X', 'D'}
)

Functions

This section is empty.

Types

type Block

type Block interface {
	FourCC() uint32
	Length() int // total length, including the magic identifier
}

Block is a block interface

type FX

type FX struct {
	PluginType     FXPluginType     // Plugin type ("PtsV" for VST, "OMXD" for DMO plugins)
	UniqueID       [4]byte          // Plugin unique ID
	RoutingFlags   uint8            // Routing Flags
	MixMode        uint8            // Mix Mode
	GainFactor     FXGainFactor     // Gain Factor * 10 (9 = 90%, 10 = 100%, 11 = 110%, etc.)
	Reserved0B     uint8            // Reserved
	OutputRouting  uint32           // Output Routing (0 = send to master 0x80 + x = send to plugin x)
	Reserved10     [16]byte         // Reserved
	UserPluginName FXUserPluginName // User-chosen plugin name (Windows code page)
	LibraryName    FXLibraryName    // Library name (Original DLL name / DMO identifier - UTF-8 starting from OpenMPT 1.22.07.01, Windows code page in older versions)
	DataLength     uint32           // Length of plugin-specific data (parameters or opaque chunk)
	Data           []byte           // Plugin-specific data
	// contains filtered or unexported fields
}

FX is a FX__ block

func (*FX) FourCC

func (b *FX) FourCC() uint32

FourCC returns the big-endian representation of the block identifier

func (*FX) Length

func (b *FX) Length() int

Length returns the size of the whole block

type FXGainFactor

type FXGainFactor uint8

func (FXGainFactor) Value

func (g FXGainFactor) Value() float64

Value returns the value as a multiplier

type FXLibraryName

type FXLibraryName [64]byte

func (FXLibraryName) String

func (l FXLibraryName) String() string

type FXPluginType

type FXPluginType [4]byte

type FXUserPluginName

type FXUserPluginName [32]byte

func (FXUserPluginName) String

func (p FXUserPluginName) String() string

type PatternName

type PatternName [32]byte

func (*PatternName) String

func (n *PatternName) String() string

type PatternNames

type PatternNames struct {
	Name []PatternName
	// contains filtered or unexported fields
}

PatternNames is a PNAM block

func (*PatternNames) FourCC

func (b *PatternNames) FourCC() uint32

FourCC returns the big-endian representation of the block identifier

func (*PatternNames) Length

func (b *PatternNames) Length() int

Length returns the size of the whole block

type Unknown

type Unknown struct {
	// contains filtered or unexported fields
}

func (*Unknown) FourCC

func (b *Unknown) FourCC() uint32

FourCC returns the big-endian representation of the block identifier

func (*Unknown) Length

func (b *Unknown) Length() int

Length returns the size of the whole block

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL