equalize

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Band

type Band struct {
	// Band is the index of the Band.
	Band uint `json:"band,omitempty"`

	// Gain is the multiplier of the Band.
	Gain float64 `json:"gain,omitempty"`
}

Band represents an Equalizer Band.

type Equalizer

type Equalizer interface {
	// UseEqualizer applies the passed bands on a guild's
	// audio player.
	UseEqualizer(guildID string, bands ...Band) error
}

Equalizer wraps the UseEqualizer method.

type MockedEqualizer

type MockedEqualizer struct {
	mock.Mock
}

MockedEqualizer is the mock implementation of Equalizer.

func NewMockedEqualizer

func NewMockedEqualizer() *MockedEqualizer

NewMockedEqualizer returns a new MockedEqualizer.

func (*MockedEqualizer) UseEqualizer

func (e *MockedEqualizer) UseEqualizer(guildID string, bands ...Band) error

UseEqualizer applies the passed bands on a guild's audio player.

Jump to

Keyboard shortcuts

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