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 Chris Moeller. | \ / /
16 * | ' /
17 * \__/
18 */
19
20 #include "dumb.h"
21 #include "internal/it.h"
22
23
24
25 /* dumb_load_psm(): loads a PSM file into a DUH struct, returning a pointer
26 * to the DUH struct. When you have finished with it, you must pass the
27 * pointer to unload_duh() so that the memory can be freed.
28 */
dumb_load_psm(const char * filename,int subsong)29 DUH *DUMBEXPORT dumb_load_psm(const char *filename, int subsong)
30 {
31 DUH *duh = dumb_load_psm_quick(filename, subsong);
32 dumb_it_do_initial_runthrough(duh);
33 return duh;
34 }
35