Changeset 6298 for code/branches/presentation2/src
- Timestamp:
- Dec 9, 2009, 7:31:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
r6271 r6298 61 61 62 62 // 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); 64 66 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"); 66 68 COUT(4) << "Sound: Available devices: "; 67 69 while (true) … … 77 79 // Open the selected device 78 80 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); 80 83 if (this->device_ == NULL) 81 84 {
Note: See TracChangeset
for help on using the changeset viewer.