Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5819 in orxonox.OLD for trunk/src/lib/sound/sound_engine.cc


Ignore:
Timestamp:
Nov 29, 2005, 11:07:43 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches world_entities to trunk again
merged with command
svn merge -r5795:HEAD branches/world_entities/ trunk/
no conflicts (what a wonder)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_engine.cc

    r5779 r5819  
    2121#include "sound_engine.h"
    2222
    23 //#include <AL/alc.h> // maybe later
    2423#include "class_list.h"
    2524
     
    208207void SoundEngine::flushUnusedBuffers()
    209208{
     209  /// FIXME
    210210/*  if(this->sourceList && this->bufferList)
    211211  {
     
    280280  }
    281281
    282 
    283   alutInit(NULL, 0);
     282  // INITIALIZING THE DEVICE:
     283  ALCubyte deviceName[] =
     284#ifdef __WIN32__
     285      "native";
     286#else
     287      "'( ( devices '( native arts null ) ) )";
     288#endif
     289  //
     290  this->device = alcOpenDevice(deviceName);
     291
     292  this->context = alcCreateContext(this->device, NULL);
     293
     294  alcMakeContextCurrent(this->context);
     295
     296
    284297  if ((result = alGetError()) != AL_NO_ERROR)
    285298    SoundEngine::PrintALErrorString(result);
Note: See TracChangeset for help on using the changeset viewer.