Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6047 in orxonox.OLD for branches/spaceshipcontrol/src


Ignore:
Timestamp:
Dec 11, 2005, 2:55:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/spaceship-controll: device-loading in old style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/lib/sound/sound_engine.cc

    r6004 r6047  
    289289  }
    290290  // INITIALIZING THE DEVICE:
    291 
    292 #ifndef AL_VERSION_1_1
    293   ALubyte deviceName[] =
    294 #else
    295   ALCchar deviceName[] =
    296 #endif
    297 
    298 #ifdef __WIN32__
    299       "Direct3D";
    300 #else
    301       "'( ( devices '( native null ) ) )";
    302 #endif
    303   //
    304   this->device = alcOpenDevice(deviceName);
    305 
    306   this->context = alcCreateContext(this->device, NULL);
    307 
    308   alcMakeContextCurrent(this->context);
     291  alutInit(0, NULL);
     292// #ifndef AL_VERSION_1_1
     293//   ALubyte deviceName[] =
     294// #else
     295//   ALCchar deviceName[] =
     296// #endif
     297//
     298// #ifdef __WIN32__
     299//       "Direct3D";
     300// #else
     301//       "'( ( devices '( native null ) ) )";
     302// #endif
     303//   //
     304//   this->device = alcOpenDevice(deviceName);
     305//
     306//   this->context = alcCreateContext(this->device, NULL);
     307//
     308//   alcMakeContextCurrent(this->context);
    309309
    310310  if ((result = alGetError()) != AL_NO_ERROR)
Note: See TracChangeset for help on using the changeset viewer.