mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/* 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. 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 <QAudioDeviceInfo>
|
|
|
|
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
|