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. * loadpsm2.c - Code to read a ProTracker Studio / / \ \
  12. * file, opening and closing it for | < / \_
  13. * you, and do an initial run-through. | \/ /\ /
  14. * \_ / > /
  15. * By Christopher Snowhill. | \ / /
  16. * | ' /
  17. * \__/
  18. */
  19. #include "dumb.h"
  20. #include "internal/it.h"
  21. /* dumb_load_psm(): loads a PSM 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_psm(const char *filename, int subsong) {
  26. DUH *duh = dumb_load_psm_quick(filename, subsong);
  27. dumb_it_do_initial_runthrough(duh);
  28. return duh;
  29. }