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
Added 3d audio support using openal
[bcl.git]
/
tests
/
test3d.c
blob
1a39963797d62ef8531f189d651adebf9b9cd2c7
1
#include
"../bcl.h"
2
#include <stdio.h>
3
4
main
(
int
argc
,
char
* *
argv
) {
5
init3dAudio
();
6
int
sound
=
load3dSound
(
argv
[
1
]);
7
printf
(
"%d
\n
"
,
sound
);
8
float
i
= -
4.0
f
;
9
loop3dSound
(
sound
);
10
for
(;
i
<
4.0
f
;
i
+=
0.125
f
) {
11
set3dSoundPosition
(
sound
,
i
,
0.0
f
,
0.0
f
);
12
delay
(
500
);
13
}
14
getchar
();
15
unload3dSound
(
sound
);
16
terminate3dAudio
();
17
return
0
;
18
}