had a stab at my incorrect pointer code
[bcl.git] / tests / testMany3d.c
blobaebae20211215e8be55cd78810d897d1405db9d5
1 #include "../bcl.h"
2 #include <stdio.h>
3 #include <stdlib.h>
5 main() {
6 int sounds[30];
7 init3dAudio();
8 int i;
9 for (i = 0; i < 30; i++) {
10 sounds[i] = load3dSound(i%2==0?"/home/rkruger/test.wav":"/home/rkruger/test2.wav");
11 set3dSoundPosition(sounds[i],4.0f/random(),3.0f/random(),6.0f/random());
12 set3dSoundPitch(sounds[i],0.5f+9.0f/random());
13 play3dSound(sounds[i]);
15 getchar();
16 terminate3dAudio();
17 return 0;