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