summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2005-05-09 10:39:17 (UTC)
committer mickeyl <mickeyl>2005-05-09 10:39:17 (UTC)
commitbeafdf6f2550f14bf8b6a37a25fe3224c887a42d (patch) (side-by-side diff)
treed8dc0249d4b2f148e9d6ad24d25b1df8ddd8ec3f
parentea889d21f3b5bf846ff20a6fad9a756108a28ad7 (diff)
downloadopie-beafdf6f2550f14bf8b6a37a25fe3224c887a42d.zip
opie-beafdf6f2550f14bf8b6a37a25fe3224c887a42d.tar.gz
opie-beafdf6f2550f14bf8b6a37a25fe3224c887a42d.tar.bz2
remove bogus comment
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiemm/osoundsystem.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopie2/opiemm/osoundsystem.cpp b/libopie2/opiemm/osoundsystem.cpp
index 6c03203..2956682 100644
--- a/libopie2/opiemm/osoundsystem.cpp
+++ b/libopie2/opiemm/osoundsystem.cpp
@@ -37,52 +37,48 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/soundcard.h>
#include <sys/stat.h>
static const char* device_label[] = SOUND_DEVICE_LABELS;
static int max_device_nr = sizeof device_label / sizeof (const char*);
using namespace Opie::Core;
using namespace Opie::MM;
/*======================================================================================
* OSoundSystem
*======================================================================================*/
OSoundSystem* OSoundSystem::_instance = 0;
OSoundSystem::OSoundSystem()
{
odebug << "OSoundSystem::OSoundSystem()" << oendl;
synchronize();
}
void OSoundSystem::synchronize()
{
- // gather available interfaces by inspecting /dev
- //FIXME: we could use SIOCGIFCONF here, but we aren't interested in virtual (e.g. eth0:0) devices
- //FIXME: Use SIOCGIFCONF anway, because we can disable listing of aliased devices
-
_interfaces.clear();
_interfaces.insert( "soundcard", new OSoundCard( this, "soundcard" ) );
/*
QString str;
QFile f( "/dev/sound" );
bool hasFile = f.open( IO_ReadOnly );
if ( !hasFile )
{
odebug << "OSoundSystem: /dev/sound not existing. No sound devices available" << oendl;
return;
}
QTextStream s( &f );
s.readLine();
s.readLine();
while ( !s.atEnd() )
{
s >> str;
str.truncate( str.find( ':' ) );
odebug << "OSoundSystem: found interface '" << str << "'" << oendl;
OAudioInterface* iface;
iface = new OAudioInterface( this, (const char*) str );