sound

package
v0.0.0-...-fbca620 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PauseSong

func PauseSong(state bool)

func PlaySong

func PlaySong(input string) (int, error)

PlaySong execute file .mp3

func Seek

func Seek(pos int) error

func SetVolume

func SetVolume(percent int)

Types

type Songs

type Songs struct {
	Library []string
}

func NewSongs

func NewSongs() *Songs

NewSongs return of instance of struct Songs

func (*Songs) GetLibrary

func (s *Songs) GetLibrary() []string

GetLibrary return of list the library directorys.

func (*Songs) GetNames

func (s *Songs) GetNames(names []string) []string

GetNames return of base name from filepaths.

func (*Songs) GetSongs

func (s *Songs) GetSongs(index int) []string

GetSongs return of list the songs the index library

func (*Songs) Init

func (s *Songs) Init(path string) error

Init function initialise library the songs.

func (*Songs) MusicPath

func (s *Songs) MusicPath(index int, songs []string) string

MusicPath return path of music from row selected

Jump to

Keyboard shortcuts

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