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.

40 lines
1.6KB

  1. /* _______ ____ __ ___ ___
  2. * \ _ \ \ / \ / \ \ / / ' ' '
  3. * | | \ \ | | || | \/ | . .
  4. * | | | | | | || ||\ /| |
  5. * | | | | | | || || \/ | | ' ' '
  6. * | | | | | | || || | | . .
  7. * | |_/ / \ \__// || | |
  8. * /_______/ynamic \____/niversal /__\ /____\usic /| . . ibliotheque
  9. * / \
  10. * / . \
  11. * loadmod.c - Code to read a 669 Composer module / / \ \
  12. * file, opening and closing it for | < / \_
  13. * you. | \/ /\ /
  14. * \_ / > /
  15. * By Christopher Snowhill. | \ / /
  16. * | ' /
  17. * \__/
  18. */
  19. #include "dumb.h"
  20. #include "internal/it.h"
  21. /* dumb_load_669_quick(): loads a 669 file into a DUH struct, returning a
  22. * pointer to the DUH struct. When you have finished with it, you must
  23. * pass the pointer to unload_duh() so that the memory can be freed.
  24. */
  25. DUH *dumb_load_669_quick(const char *filename) {
  26. DUH *duh;
  27. DUMBFILE *f = dumbfile_open(filename);
  28. if (!f)
  29. return NULL;
  30. duh = dumb_read_669_quick(f);
  31. dumbfile_close(f);
  32. return duh;
  33. }