int main( int argc, char *argv[] ) {
SGSoundMgr sm;
- SGSoundSample sample1( ".", "jet.wav", true );
+ SGSoundSample sample1( SRC_DIR, "jet.wav" );
sample1.set_volume(0.5);
sample1.set_volume(0.2);
sample1.play_looped();
sleep(1);
- SGSoundSample sample2( ".", "jet.wav", true );
+ SGSoundSample sample2( SRC_DIR, "jet.wav" );
sample2.set_volume(0.5);
sample2.set_pitch(0.4);
sample2.play_looped();
sleep(1);
- SGSoundSample sample3( ".", "jet.wav", true );
+ SGSoundSample sample3( SRC_DIR, "jet.wav" );
sample3.set_volume(0.5);
sample3.set_pitch(0.8);
sample3.play_looped();
sleep(1);
- SGSoundSample sample4( ".", "jet.wav", true );
+ SGSoundSample sample4( SRC_DIR, "jet.wav" );
sample4.set_volume(0.5);
sample4.set_pitch(1.2);
sample4.play_looped();
sleep(1);
- SGSoundSample sample5( ".", "jet.wav", true );
+ SGSoundSample sample5( SRC_DIR, "jet.wav" );
sample5.set_volume(0.5);
sample5.set_pitch(1.6);
sample5.play_looped();
sleep(1);
- SGSoundSample sample6( ".", "jet.wav", true );
+ SGSoundSample sample6( SRC_DIR, "jet.wav" );
sample6.set_volume(0.5);
sample6.set_pitch(2.0);
sample6.play_looped();