- Timestamp:
- Dec 13, 2009, 12:11:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
r6322 r6332 60 60 Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit); 61 61 62 /* 62 63 // 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); 64 65 char* device = new char[strlen(devices)+1]; 65 66 strcpy(device, devices); 66 67 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"); 68 69 COUT(4) << "Sound: Available devices: "; 69 70 while (true) … … 79 80 // Open the selected device 80 81 COUT(3) << "Sound: Opening device \"" << renderDevice << "\"" << std::endl; 81 this->device_ = alcOpenDevice(renderDevice.c_str());*/ 82 this->device_ = alcOpenDevice(renderDevice.c_str()); 83 */ 82 84 this->device_ = alcOpenDevice(NULL); 83 85 if (this->device_ == NULL) … … 573 575 try 574 576 { 575 buffer.reset(new SoundBuffer(filename)); 576 buffer->poolIterator_ = this->effectsPool_.end(); 577 buffer.reset(new SoundBuffer(filename, this->effectsPool_.end())); 577 578 } 578 579 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.