/go-poolsuite

Poolsuite FM player as Go module

Primary LanguageGoGNU General Public License v3.0GPL-3.0

go-poolsuite

Poolsuite FM (formerly Poolside FM) player as a Go module.

Example

func main() {
	psfm := poolsuite.NewPoolsuite()
	psfm.Load()
	track := psfm.GetRandomTrackFromPlaylist(psfm.GetRandomPlaylist())
	psfm.Play(track, nil)
	fmt.Println("Waiting ..")
	time.Sleep(8 * time.Second)
	fmt.Println("Stopping ...")
	psfm.PauseResume()
	fmt.Println("Stopped, waiting ...")
	time.Sleep(3 * time.Second)
	track = psfm.GetRandomTrackFromPlaylist(psfm.GetRandomPlaylist())
	psfm.Play(track, nil)
	fmt.Println("Waiting ..")
	time.Sleep(5 * time.Second)
	fmt.Println("Stopping ...")
	psfm.PauseResume()
	fmt.Println("Stopped, waiting ...")
	time.Sleep(3 * time.Second)
	fmt.Println("Done")
}