Beispiel #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
}
Beispiel #2
0
func Init() {
	C.mpg123_init()
	C.ao_initialize()
}
Beispiel #3
0
func Initialize() {
	if err := mpg123Error(C.mpg123_init()); err != nil {
		Exit()
		panic(err)
	}
}
Beispiel #4
0
func init() {
	initError = toError(C.mpg123_init())
}