This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 394 for ps


Ignore:
Timestamp:
06/03/04 21:43:19 (21 years ago)
Author:
kezz
Message:

kezz - added fmod initialisation code to main.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/main.cpp

    r392 r394  
    66#include <cmath>
    77
     8#include <fmod.h>
    89
    910// Alan: For some reason if this gets included after anything else some
     
    4445#include "gui/GUI.h"
    4546#endif
     47
    4648
    4749CConsole* g_Console = 0;
     
    472474
    473475
     476    if(FSOUND_Init(44100, 32, 0) == 0)
     477    {
     478        swprintf(err_msg, ERR_MSG_SIZE, L"Failed to initialise FMOD");
     479        display_startup_error(err_msg);
     480    }
    474481
    475482    // set current directory to "$game_dir/data".
     
    694701    delete CRenderer::GetSingletonPtr();
    695702
     703    //shut down FMOD - needs adding to the atexit calls above
     704    FSOUND_Close();
     705
    696706    exit(0);
    697707    return 0;
Note: See TracChangeset for help on using the changeset viewer.