From 4bde94abf9ee666af633c10d4f408704c5e36af9 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 2 Feb 2010 15:50:37 +0100 Subject: cDxr3Interface::IsOssAudio is not needed anymore This method does not work with newer dxr3 drivers, as they support both audio interfaces (oss/alsa) at the same time. --- dxr3interface.c | 13 ------------- dxr3interface.h | 1 - 2 files changed, 14 deletions(-) diff --git a/dxr3interface.c b/dxr3interface.c index aa2fd0e..339610b 100644 --- a/dxr3interface.c +++ b/dxr3interface.c @@ -48,19 +48,6 @@ cDxr3Interface::~cDxr3Interface() } // audio -bool cDxr3Interface::IsOssAudio() -{ - // try to open oss audio interface - int handle = Dxr3Open(DEV_DXR3_OSS, O_RDWR | O_NONBLOCK, false); - - if (handle > -1) { - close(handle); - return true; - } - - return false; -} - int cDxr3Interface::OssSetPlayMode(uint32_t mode) { return ioctl(m_fdControl, EM8300_IOCTL_SET_AUDIOMODE, &mode); diff --git a/dxr3interface.h b/dxr3interface.h index 2516ac1..80fa7c5 100644 --- a/dxr3interface.h +++ b/dxr3interface.h @@ -67,7 +67,6 @@ public: } // audio - bool IsOssAudio(); int OssSetPlayMode(uint32_t mode); // clock -- cgit v1.2.3