示例#1
0
// Initialize the mpg123 library when package is loaded
func init() {
	err := C.mpg123_init()
	if err != C.MPG123_OK {
		//return fmt.Errorf("error initializing mpg123")
		panic("failed to initialize mpg123")
	}
	//return nil
}
示例#2
0
文件: mp3.go 项目: deepakjois/gomp3
func Init() {
	C.mpg123_init()
	C.ao_initialize()
}
示例#3
0
func Initialize() {
	if err := mpg123Error(C.mpg123_init()); err != nil {
		Exit()
		panic(err)
	}
}
示例#4
0
文件: mpg123.go 项目: Wessie/audec
func init() {
	initError = toError(C.mpg123_init())
}