Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2009, 7:31:33 PM (15 years ago)
Author:
scheusso
Message:

hackfix with config values/sound device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/SoundManager.cc

    r6271 r6298  
    6161
    6262        // Get list of available sound devices and display them
    63         const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
     63/*        const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
     64        char* device = new char[strlen(devices)+1];
     65        strcpy(device, devices);
    6466        std::string renderDevice;
    65         SetConfigValue(renderDevice, devices).description("Sound device used for rendering");
     67//        SetConfigValue(renderDevice, std::string(device)).description("Sound device used for rendering");
    6668        COUT(4) << "Sound: Available devices: ";
    6769        while (true)
     
    7779        // Open the selected device
    7880        COUT(3) << "Sound: Opening device \"" << renderDevice << "\"" << std::endl;
    79         this->device_ = alcOpenDevice(renderDevice.c_str());
     81        this->device_ = alcOpenDevice(renderDevice.c_str());*/
     82        this->device_ = alcOpenDevice(NULL);
    8083        if (this->device_ == NULL)
    8184        {
Note: See TracChangeset for help on using the changeset viewer.