Пример #1
0
void MusicStartup( void )
   {
   int32 status;
   int musicdevicetype;

   // if they chose None lets return
   if (MusicDevice < 0) {
      return;
   } else if (MusicDevice == 0) {
      musicdevicetype = ASS_AutoDetect;
   } else {
      musicdevicetype = MusicDevice - 1;
   }
   
   status = MUSIC_Init( musicdevicetype, 0 );

   if ( status == MUSIC_Ok )
      {
      MUSIC_SetVolume( MusicVolume );
      }
   else
   {
      initprintf("Couldn't find selected sound card, or, error w/ sound card itself.\n");

      SoundShutdown();
      uninittimer();
      uninitengine();
      CONTROL_Shutdown();
      CONFIG_WriteSetup();
      KB_Shutdown();
      uninitgroupfile();
      //unlink("duke3d.tmp");
      exit(-1);
   }
}
Пример #2
0
void ShutDown( void )
{
    KB_Shutdown();
    TIME_RemoveTimer( timerhandle );
    SoundShutdown();
    MusicShutdown();
    CONFIG_WriteSetup();
}
Пример #3
0
void soundexit(char *s)
{
    SoundShutdown();
    uninittimer();
    uninitengine();
    CONTROL_Shutdown();
    CONFIG_WriteSetup();
    KB_Shutdown();
    uninitgroupfile();
    unlink("duke3d.tmp");
    puts(s);
    exit(-1);
}
Пример #4
0
void MusicStartup( void )
{
    int32 status;

    // if they chose None lets return
    if ((MusicDevice == NumSoundCards) || (eightytwofifty && numplayers > 1) ) {
        return;
    }

    // satisfy AWE32 and WAVEBLASTER stuff
    BlasterConfig.Midi = MidiPort;

    // Do special Sound Blaster, AWE32 stuff
    if (
        ( FXDevice == SoundBlaster ) ||
        ( FXDevice == Awe32 )
    ) {
        int MaxVoices;
        int MaxBits;
        int MaxChannels;

        FX_SetupSoundBlaster
        (
            BlasterConfig, (int *)&MaxVoices, (int *)&MaxBits, (int *)&MaxChannels
        );
    }
    status = MUSIC_Init( MusicDevice, MidiPort );

    if ( status == MUSIC_Ok ) {
        MUSIC_SetVolume( MusicVolume );
    } else {
        SoundShutdown();
        uninittimer();
        uninitengine();
        CONTROL_Shutdown();
        CONFIG_WriteSetup();
        KB_Shutdown();
        uninitgroupfile();
        unlink("duke3d.tmp");
        Error(EXIT_FAILURE, "Couldn't find selected sound card, or, error w/ sound card itself\n");
    }
}
Пример #5
0
============
*/
void ShutdownInput (void)
{
	IN_Shutdown();
Пример #6
0
/*
============
Input_Shutdown
============
*/
void Input_Shutdown (void)
{
	IN_Shutdown();
	KB_Shutdown();
}