Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2009, 12:11:40 AM (14 years ago)
Author:
rgrieder
Message:

Improved SoundBuffer class design and removed its pooling property (just a boolean).

File:
1 edited

Legend:

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

    r6322 r6332  
    6060        Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit);
    6161
     62/*
    6263        // Get list of available sound devices and display them
    63 /*        const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
     64        const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
    6465        char* device = new char[strlen(devices)+1];
    6566        strcpy(device, devices);
    6667        std::string renderDevice;
    67 //        SetConfigValue(renderDevice, std::string(device)).description("Sound device used for rendering");
     68        SetConfigValue(renderDevice, std::string(device)).description("Sound device used for rendering");
    6869        COUT(4) << "Sound: Available devices: ";
    6970        while (true)
     
    7980        // Open the selected device
    8081        COUT(3) << "Sound: Opening device \"" << renderDevice << "\"" << std::endl;
    81         this->device_ = alcOpenDevice(renderDevice.c_str());*/
     82        this->device_ = alcOpenDevice(renderDevice.c_str());
     83*/
    8284        this->device_ = alcOpenDevice(NULL);
    8385        if (this->device_ == NULL)
     
    573575            try
    574576            {
    575                 buffer.reset(new SoundBuffer(filename));
    576                 buffer->poolIterator_ = this->effectsPool_.end();
     577                buffer.reset(new SoundBuffer(filename, this->effectsPool_.end()));
    577578            }
    578579            catch (...)
Note: See TracChangeset for help on using the changeset viewer.