/* Osqoop, an open source software oscilloscope. Copyright (C) 2006 Stephane Magnenat Laboratory of Digital Systems http://www.eig.ch/labsynum.htm Engineering School of Geneva http://www.eig.ch See AUTHORS for more details about other contributors. 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __SOUND_CARD_H #define __SOUND_CARD_H #include class SoundCardSystemSpecificData; //! Description of SoundCard, a sound input capture source class SoundCardDataSourceDescription : public QObject, public DataSourceDescription { Q_OBJECT Q_INTERFACES(DataSourceDescription) public: virtual QString name() const; virtual QString description() const; virtual DataSource *create() const; }; //! SoundCard, a sound input capture source class SoundCardDataSource : public DataSource { private: friend class SoundCardDataSourceDescription; SoundCardDataSource(const DataSourceDescription *description); SoundCardSystemSpecificData *privateData; public: virtual ~SoundCardDataSource(); virtual bool init(void); virtual unsigned getRawData(std::valarray > *data); virtual unsigned inputCount() const; virtual unsigned samplingRate() const; virtual unsigned unitPerVoltCount() const; }; #endif