aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstalkerg <stalkerg@90c681e8-e032-0410-971d-27865f9a5e38>2007-08-13 20:52:30 +0000
committerstalkerg <stalkerg@90c681e8-e032-0410-971d-27865f9a5e38>2007-08-13 20:52:30 +0000
commit756281c636a236371585a5f063c8cd8934e4c428 (patch)
tree1fe09a2df5cce56b37799425cdeac2fe2b2923aa
parentd9b85f44651fd336442d720e56645646e86d6d30 (diff)
downloadqmmp-756281c636a236371585a5f063c8cd8934e4c428.tar.gz
qmmp-756281c636a236371585a5f063c8cd8934e4c428.tar.bz2
qmmp-756281c636a236371585a5f063c8cd8934e4c428.zip
Small fix in oss plugin.
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@87 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--lib/qmmp/Output/oss/outputoss.h51
1 files changed, 24 insertions, 27 deletions
diff --git a/lib/qmmp/Output/oss/outputoss.h b/lib/qmmp/Output/oss/outputoss.h
index f24d69df7..ce73bf3bd 100644
--- a/lib/qmmp/Output/oss/outputoss.h
+++ b/lib/qmmp/Output/oss/outputoss.h
@@ -1,8 +1,24 @@
-// Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com>
-//
-// Use, modification and distribution is allowed without limitation,
-// warranty, or liability of any kind.
-//
+/***************************************************************************
+ * Copyright (C) 2007 by Uriy Zhuravlev stalkerg@gmail.com *
+ * *
+ * Copyright (c) 2000-2001 Brad Hughes bhughes@trolltech.com *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
#ifndef OUTPUTOSS_H
#define OUTPUTOSS_H
@@ -11,15 +27,10 @@ class OutputOSS;
#include <output.h>
#include <QObject>
-/*
-#if defined( Q_OS_WIN32 )
-#include <dsound.h>
-#include "constants.h"
-#endif
-*/
class OutputOSS : public Output
{
+Q_OBJECT
public:
OutputOSS(QObject * parent = 0);
virtual ~OutputOSS();
@@ -54,25 +65,11 @@ private:
long m_totalWritten, m_currentSeconds, m_bps;
int stat;
int m_rate, m_frequency, m_channels, m_precision;
-//#if defined(_OS_UNIX_) || defined(Q_OS_UNIX)
+
bool do_select;
int m_audio_fd, m_mixer_fd;
long bl, br;
-
-/*#elif defined( _OS_WIN32_ ) || defined( Q_OS_WIN32 )
- LPDIRECTSOUND lpds;
- LPDIRECTSOUNDBUFFER lpdsb;
- LPDIRECTSOUNDNOTIFY lpdsn;
- PCMWAVEFORMAT pcmwf;
- Qt::HANDLE hNotifyEvent;
- DSBPOSITIONNOTIFY notifies[ BUFFERBLOCKS ];
- DWORD currentLatency;
-// Not sure we need this
-// DSCAPS dsCaps;
-//
-//#endif
-*/
};
-#endif // __audiooutout_h
+#endif