Last change
on this file since 528 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
-
Property svn:keywords set to
Id
|
File size:
527 bytes
|
Line | |
---|
1 | #include "jmalloc.hpp" |
---|
2 | #include "sound.hpp" |
---|
3 | |
---|
4 | void free_up_memory() |
---|
5 | { |
---|
6 | } |
---|
7 | |
---|
8 | extern int jmalloc_max_size; |
---|
9 | |
---|
10 | main() |
---|
11 | { |
---|
12 | int argc = 0; |
---|
13 | char *argv[] = { "" }; |
---|
14 | |
---|
15 | jmalloc_max_size = 400000; |
---|
16 | jmalloc_init(300000); |
---|
17 | |
---|
18 | sound_init(argc, argv); |
---|
19 | |
---|
20 | sound_effect snd("sfx_switch01.wav"); |
---|
21 | |
---|
22 | snd.play(); |
---|
23 | snd.play(); |
---|
24 | snd.play(); |
---|
25 | snd.play(); |
---|
26 | |
---|
27 | snd.play(); |
---|
28 | snd.play(); |
---|
29 | snd.play(); |
---|
30 | snd.play(); |
---|
31 | |
---|
32 | while (!Button()) ; |
---|
33 | |
---|
34 | snd.play(); |
---|
35 | snd.play(); |
---|
36 | snd.play(); |
---|
37 | snd.play(); |
---|
38 | |
---|
39 | snd.play(); |
---|
40 | snd.play(); |
---|
41 | snd.play(); |
---|
42 | snd.play(); |
---|
43 | |
---|
44 | sound_uninit(); |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.