Do a better job of disabling all sound related stuff if --disable-sound is
specified.
This commit is contained in:
parent
65e9aba6dc
commit
60ac2b36e0
1 changed files with 31 additions and 29 deletions
|
@ -990,6 +990,7 @@ static void fgIdleFunction ( void ) {
|
|||
}
|
||||
#endif // WIN32
|
||||
|
||||
if ( current_options.get_sound() ) {
|
||||
audio_sched = new slScheduler ( 8000 );
|
||||
audio_mixer = new smMixer;
|
||||
audio_mixer -> setMasterVolume ( 80 ) ; /* 80% of max volume. */
|
||||
|
@ -1024,6 +1025,7 @@ static void fgIdleFunction ( void ) {
|
|||
// s2 -> loadFile ( slfile );
|
||||
// s2 -> adjustVolume(0.5);
|
||||
// audio_sched -> playSample ( s2 );
|
||||
}
|
||||
#endif
|
||||
|
||||
// sleep(1);
|
||||
|
|
Loading…
Reference in a new issue