1
0
Fork 0

Do a better job of disabling all sound related stuff if --disable-sound is

specified.
This commit is contained in:
curt 1999-11-20 15:39:53 +00:00
parent 65e9aba6dc
commit 60ac2b36e0

View file

@ -990,6 +990,7 @@ static void fgIdleFunction ( void ) {
} }
#endif // WIN32 #endif // WIN32
if ( current_options.get_sound() ) {
audio_sched = new slScheduler ( 8000 ); audio_sched = new slScheduler ( 8000 );
audio_mixer = new smMixer; audio_mixer = new smMixer;
audio_mixer -> setMasterVolume ( 80 ) ; /* 80% of max volume. */ audio_mixer -> setMasterVolume ( 80 ) ; /* 80% of max volume. */
@ -1024,6 +1025,7 @@ static void fgIdleFunction ( void ) {
// s2 -> loadFile ( slfile ); // s2 -> loadFile ( slfile );
// s2 -> adjustVolume(0.5); // s2 -> adjustVolume(0.5);
// audio_sched -> playSample ( s2 ); // audio_sched -> playSample ( s2 );
}
#endif #endif
// sleep(1); // sleep(1);