int main (int argc, char** argv) { initializeCamera(); initializeSound(); initializeGraphics(argc, argv); return 0; }
CaptureThread::CaptureThread(QObject *parent) { _capturing = false; _noiseReductionActive = false; initializeSound(); // sample = -1; _logFile = SoundManager::instance()->getLogFile(); }
void LegacyMenu::onRaceDriversLoaded() { if (_piRaceEngine->inData()->_displayMode == RM_DISP_MODE_NORMAL) { // It must be done after the cars are loaded and the track is loaded. // The track will be unloaded if the event ends. // The graphics module is kept open if more than one race is driven. // Initialize the graphics and sound engines. if (initializeGraphics() && initializeSound()) { char buf[128]; snprintf(buf, sizeof (buf), "Loading graphics for %s track ...", _piRaceEngine->inData()->track->name); addLoadingMessage(buf); // Initialize the track graphics. loadTrackGraphics(_piRaceEngine->inData()->track); } } }
bool Platform::initialize() { setStoragePath(); ms_pWindow = Window::create(); if (NULL == ms_pWindow) { return false; } System::ms_pDisplay = createDisplay(); if (NULL == System::ms_pDisplay) { return false; } ms_pTimer = Timer::create(); if (NULL == ms_pTimer) { return false; } System::ms_pInput = Input::create(); if (NULL == System::ms_pInput) { return false; } // Initialize sound if (false == initializeSound()) { return false; } return true; }