An audio player for macOS 10.8 and newer. https://kode54.net/cog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.5KB

  1. /* _______ ____ __ ___ ___
  2. * \ _ \ \ / \ / \ \ / / ' ' '
  3. * | | \ \ | | || | \/ | . .
  4. * | | | | | | || ||\ /| |
  5. * | | | | | | || || \/ | | ' ' '
  6. * | | | | | | || || | | . .
  7. * | |_/ / \ \__// || | |
  8. * /_______/ynamic \____/niversal /__\ /____\usic /| . . ibliotheque
  9. * / \
  10. * / . \
  11. * loadasy2.c - Code to read an ASYLUM Music Format / / \ \
  12. * module file, opening and closing it | < / \_
  13. * for you, and do an initial run- | \/ /\ /
  14. * through. \_ / > /
  15. * | \ / /
  16. * By Christopher Snowhill. | ' /
  17. * \__/
  18. */
  19. #include "dumb.h"
  20. #include "internal/it.h"
  21. /* dumb_load_asy(): loads a AMF file into a DUH struct, returning a pointer
  22. * to the DUH struct. When you have finished with it, you must pass the
  23. * pointer to unload_duh() so that the memory can be freed.
  24. */
  25. DUH *dumb_load_asy(const char *filename) {
  26. DUH *duh = dumb_load_asy_quick(filename);
  27. dumb_it_do_initial_runthrough(duh);
  28. return duh;
  29. }