acodec.go 513 B

1234567891011121314151617181920212223
  1. // acodec
  2. package al
  3. /*
  4. #cgo pkg-config: allegro_acodec-5
  5. #cgo CFLAGS: -I/usr/local/include
  6. #cgo linux LDFLAGS: -lc_nonshared
  7. #include <stdlib.h>
  8. #include <allegro5/allegro.h>
  9. #include <allegro5/allegro_acodec.h>
  10. #include "helpers.h"
  11. */
  12. import "C"
  13. // Initializes the audio codec addon of Allegro
  14. func InitAcodecAddon() bool {
  15. return cb2b(C.al_init_acodec_addon())
  16. }
  17. // Gets the version of the allegro5 audio codec addon
  18. func AcodecVersion() uint32 {
  19. return uint32(C.al_get_allegro_acodec_version())
  20. }