[Orxonox-commit 1580] r6298 - code/branches/presentation2/src/orxonox/sound
scheusso at orxonox.net
scheusso at orxonox.net
Wed Dec 9 19:31:33 CET 2009
Author: scheusso
Date: 2009-12-09 19:31:33 +0100 (Wed, 09 Dec 2009)
New Revision: 6298
Modified:
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
Log:
hackfix with config values/sound device
Modified: code/branches/presentation2/src/orxonox/sound/SoundManager.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-12-09 16:50:34 UTC (rev 6297)
+++ code/branches/presentation2/src/orxonox/sound/SoundManager.cc 2009-12-09 18:31:33 UTC (rev 6298)
@@ -60,9 +60,11 @@
Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit);
// Get list of available sound devices and display them
- const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
+/* const char* devices = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
+ char* device = new char[strlen(devices)+1];
+ strcpy(device, devices);
std::string renderDevice;
- SetConfigValue(renderDevice, devices).description("Sound device used for rendering");
+// SetConfigValue(renderDevice, std::string(device)).description("Sound device used for rendering");
COUT(4) << "Sound: Available devices: ";
while (true)
{
@@ -76,7 +78,8 @@
// Open the selected device
COUT(3) << "Sound: Opening device \"" << renderDevice << "\"" << std::endl;
- this->device_ = alcOpenDevice(renderDevice.c_str());
+ this->device_ = alcOpenDevice(renderDevice.c_str());*/
+ this->device_ = alcOpenDevice(NULL);
if (this->device_ == NULL)
{
COUT(1) << "Sound: Could not open sound device. Have you installed OpenAL?" << std::endl;
More information about the Orxonox-commit
mailing list