Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5385 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Oct 15, 2005, 11:24:01 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: enumeration of the Sound-devices… but it does not really work here

File:
1 edited

Legend:

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

    r5293 r5385  
    434434{
    435435  ALenum result;
    436 
    437   PRINTF(3)("Initialisazing openAL sound library\n");
     436  PRINTF(3)("Initialisazing openAL sound engine\n");
     437  const char* defaultDevice =(const char*) alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
     438  const char* deviceList = (const char*)alcGetString(NULL,ALC_DEVICE_SPECIFIER);
     439  const char* devWalk = deviceList;
     440  if (alcIsExtensionPresent(NULL, (ALubyte*)"ALC_ENUMERATION_EXT") == AL_TRUE) { // try out enumeration extension
     441    printf("Enumeration-extension found\n");
     442
     443    printf("Default device: %s\n", defaultDevice);
     444    do
     445    {
     446      printf("%s\n", devWalk);
     447      devWalk += strlen(devWalk)+1;
     448    } while (devWalk[0] != '\0');
     449
     450
     451  }
     452
    438453
    439454  alutInit(NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.