null

package
v0.0.0-...-d0ed23c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package null implements a dummy audio driver that doesn't play any audio.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct{}

Engine is a null audio engine.

func New

func New() *Engine

New creates a null engine.

func (*Engine) LoadMusic

func (e *Engine) LoadMusic(filename string) (Playable, error)

LoadMusic loads nothing.

func (*Engine) LoadMusicBin

func (e *Engine) LoadMusicBin(data []byte) (Playable, error)

LoadMusicBin loads nothing.

func (*Engine) LoadSound

func (e *Engine) LoadSound(filename string) (Playable, error)

LoadSound loads nothing.

func (*Engine) LoadSoundBin

func (e *Engine) LoadSoundBin(data []byte) (Playable, error)

LoadSoundBin loads nothing.

func (*Engine) Playing

func (e *Engine) Playing() bool

Playing returns false.

func (*Engine) PlayingMusic

func (e *Engine) PlayingMusic() bool

PlayingMusic returns false.

func (*Engine) PlayingSound

func (e *Engine) PlayingSound() bool

PlayingSound returns false.

func (*Engine) Setup

func (e *Engine) Setup() error

Setup the null engine (do nothing).

func (*Engine) StopAll

func (e *Engine) StopAll()

StopAll does nothing.

func (*Engine) StopMusic

func (e *Engine) StopMusic()

StopMusic does nothing.

func (*Engine) StopSounds

func (e *Engine) StopSounds()

StopSounds does nothing.

func (*Engine) Teardown

func (e *Engine) Teardown() error

Teardown the null engine (do nothing).

type Playable

type Playable struct{}

Playable is a null music or sound effect.

func (Playable) Destroy

func (p Playable) Destroy() error

Destroy nothing.

func (Playable) Pause

func (p Playable) Pause() error

Pause nothing

func (Playable) Play

func (p Playable) Play(loops int) error

Play nothing.

func (Playable) Playing

func (p Playable) Playing() bool

Playing?

func (Playable) Stop

func (p Playable) Stop() error

Stop nothing.

Jump to

Keyboard shortcuts

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