Documentation ¶
Overview ¶
Package gme decodes game music files.
This package requires cgo and uses code from http://blargg.8bitalley.com/libs/audio.html#Game_Music_Emu.
Index ¶
Constants ¶
View Source
const (
FadeLength = time.Second * 8
)
Variables ¶
View Source
var ( // InfoOnly is the sample rate to New if only track information is needed. InfoOnly = C.gme_info_only )
Functions ¶
This section is empty.
Types ¶
type GME ¶
type GME struct {
// contains filtered or unexported fields
}
GME decodes game music.
func (*GME) Play ¶
Play decodes the next samples into data. Data is populated with two channels interleaved.
type Track ¶
type Track struct { PlayLength time.Duration // Times; negative if unknown. // Length is the total length, if specified by file. Length time.Duration IntroLength time.Duration LoopLength time.Duration System string Game string Song string Author string Copyright string Comment string Dumper string }
Click to show internal directories.
Click to hide internal directories.