repo.or.cz
/
bcl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
had a stab at my incorrect pointer code
[bcl.git]
/
tests
/
testALMusic.c
blob
d9c8542a22a5159be07fc3beb502cea4d4be722a
1
#include
"../bcl.h"
2
#include <stdlib.h>
3
4
main
(
int
argc
,
char
* *
argv
) {
5
initEnvironment
();
6
initAudio
();
7
int
sound
=
streamSound
(
argv
[
1
]);
8
loopSound
(
sound
);
9
while
(!
isKeyDown
(
'q'
)) {
10
delay
(
10
);
11
pumpEvents
();
12
}
13
stopSound
(
sound
);
14
unloadSound
(
sound
);
15
terminateAudio
();
16
terminateEnvironment
();
17
exit
(
0
);
18
return
0
;
19
}