コード例 #1
0
ファイル: mpa.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("MP3",
		[]string{"\xff\xfb", string([]byte{49, 44, 33})},
		[]string{"mp3"},
		NewSongs,
		nil,
	)
}
コード例 #2
0
ファイル: flac.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("FLAC", []string{"fLaC"}, []string{"flac"}, New, nil)
}
コード例 #3
0
ファイル: wav.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("WAV", []string{"RIFF????WAVE"}, []string{"wav"}, New, nil)
}
コード例 #4
0
ファイル: rar.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("RAR", []string{"RAR!\u001a\u0007"}, []string{"rar", "rsn"}, Read, Get)
}
コード例 #5
0
ファイル: nsf.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("NSF", []string{"NESM\u001a"}, []string{"nsf"}, ReadNSFSongs, Get)
	codec.RegisterCodec("NSFE", []string{"NSFE"}, []string{"nsfe"}, ReadNSFSongs, Get)
}
コード例 #6
0
ファイル: vorbis.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("VORBIS", []string{"OggS"}, []string{"ogg"}, NewSongs, nil)
}
コード例 #7
0
ファイル: nsf.go プロジェクト: rossipedia/mog
func init() {
	codec.RegisterCodec("NSF", "NESM\u001a", ReadNSFSongs)
}
コード例 #8
0
ファイル: gme.go プロジェクト: shazow/mog
func init() {
	codec.RegisterCodec("SPC", []string{"SNES-SPC"}, []string{"spc"}, NewSongs, GetSong)
	codec.RegisterCodec("NSF", []string{"NESM\u001a"}, []string{"nsf"}, NewSongs, GetSong)
	codec.RegisterCodec("NSFE", []string{"NSFE"}, []string{"nsfe"}, NewSongs, GetSong)
}