/* Copyright (C) 2016 * swift project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, * including this file, may be copied, modified, propagated, or distributed except according to the terms * contained in the LICENSE file. */ //! \file #ifndef BLACKSOUND_SELCALPLAYER_H #define BLACKSOUND_SELCALPLAYER_H #include "blacksoundexport.h" #include "blacksound/threadedtonepairplayer.h" #include "blacksound/tonepair.h" #include "blackmisc/aviation/selcal.h" #include "blackmisc/worker.h" #include class QTimer; namespace BlackSound { //! SELCAL player class BLACKSOUND_EXPORT CSelcalPlayer : public QObject { Q_OBJECT public: //! Constructor CSelcalPlayer(const QAudioDeviceInfo &device = QAudioDeviceInfo::defaultOutputDevice(), QObject *parent = nullptr); //! Destructor ~CSelcalPlayer(); //! Play selcal void play(int volume, const BlackMisc::Aviation::CSelcal &selcal); private: CThreadedTonePairPlayer m_threadedPlayer; }; } #endif // guard