3 // This is broken, but allows the file to compile without a POSIX
5 static unsigned int sleep(unsigned int secs) { return 0; }
7 #include <unistd.h> // sleep()
10 #include "sample_openal.hxx"
11 #include "soundmgr_openal.hxx"
14 int main( int argc, char *argv[] ) {
17 SGSoundSample sample1( SRC_DIR, "jet.wav" );
18 sample1.set_volume(0.5);
19 sample1.set_volume(0.2);
20 sample1.play_looped();
23 SGSoundSample sample2( SRC_DIR, "jet.wav" );
24 sample2.set_volume(0.5);
25 sample2.set_pitch(0.4);
26 sample2.play_looped();
29 SGSoundSample sample3( SRC_DIR, "jet.wav" );
30 sample3.set_volume(0.5);
31 sample3.set_pitch(0.8);
32 sample3.play_looped();
35 SGSoundSample sample4( SRC_DIR, "jet.wav" );
36 sample4.set_volume(0.5);
37 sample4.set_pitch(1.2);
38 sample4.play_looped();
41 SGSoundSample sample5( SRC_DIR, "jet.wav" );
42 sample5.set_volume(0.5);
43 sample5.set_pitch(1.6);
44 sample5.play_looped();
47 SGSoundSample sample6( SRC_DIR, "jet.wav" );
48 sample6.set_volume(0.5);
49 sample6.set_pitch(2.0);
50 sample6.play_looped();