diff options
Diffstat (limited to 'apps/codecs/dumb/src/core/duhlen.c')
-rw-r--r-- | apps/codecs/dumb/src/core/duhlen.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/codecs/dumb/src/core/duhlen.c b/apps/codecs/dumb/src/core/duhlen.c new file mode 100644 index 0000000000..4500d0a50f --- /dev/null +++ b/apps/codecs/dumb/src/core/duhlen.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* _______ ____ __ ___ ___ | ||
2 | * \ _ \ \ / \ / \ \ / / ' ' ' | ||
3 | * | | \ \ | | || | \/ | . . | ||
4 | * | | | | | | || ||\ /| | | ||
5 | * | | | | | | || || \/ | | ' ' ' | ||
6 | * | | | | | | || || | | . . | ||
7 | * | |_/ / \ \__// || | | | ||
8 | * /_______/ynamic \____/niversal /__\ /____\usic /| . . ibliotheque | ||
9 | * / \ | ||
10 | * / . \ | ||
11 | * duhlen.c - Function to return the length of / / \ \ | ||
12 | * a DUH. | < / \_ | ||
13 | * | \/ /\ / | ||
14 | * By entheh. \_ / > / | ||
15 | * | \ / / | ||
16 | * Note that the length of a DUH is a constant | ' / | ||
17 | * stored in the DUH struct and in the DUH disk \__/ | ||
18 | * format. It will be calculated on loading for | ||
19 | * other formats in which the length is not explicitly stored. Also note that | ||
20 | * it does not necessarily correspond to the length of time for which the DUH | ||
21 | * will generate samples. Rather it represents a suitable point for a player | ||
22 | * such as Winamp to stop, and in any good DUH it will allow for any final | ||
23 | * flourish to fade out and be appreciated. | ||
24 | */ | ||
25 | |||
26 | #include "dumb.h" | ||
27 | #include "internal/dumb.h" | ||
28 | |||
29 | |||
30 | |||
31 | long duh_get_length(DUH *duh) | ||
32 | { | ||
33 | return duh ? duh->length : 0; | ||
34 | } | ||