Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4601 in orxonox.OLD


Ignore:
Timestamp:
Jun 11, 2005, 11:58:53 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: made sound engine cross-platform compilable

File:
1 edited

Legend:

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

    r4597 r4601  
    5757
    5858  // read in the wav data
     59  /* according to http://www.edenwaith.com/products/pige/tutorials/openal.php the alutLoadWAVFile differs from platform to platform*/
     60#ifdef __UNIX__
    5961  alutLoadWAVFile((ALbyte*)fileName, &format, &data, &this->size, &freq, &this->loop);
     62#elifdef __APPLE__
     63  alutLoadWAVFile(fileName, &format, &data, &size, &freq);
     64#elifdef __WIN32__
     65  alutLoadWAVFile(fileName, &format, &data, &size, &freq, &this->loop);
     66#endif
    6067  if ((result = alGetError()) != AL_NO_ERROR)
    6168    SoundEngine::PrintALErrorString(result);
Note: See TracChangeset for help on using the changeset viewer.