swift
Loading...
Searching...
No Matches
selcalplayer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_SOUND_SELCALPLAYER_H
7#define SWIFT_SOUND_SELCALPLAYER_H
8
9#include <chrono>
10
13#include "misc/worker.h"
16#include "sound/tonepair.h"
17
18namespace swift::sound
19{
22 {
24
25 public:
28
30 ~CSelcalPlayer() override;
31
33 void gracefulShutdown();
34
37 std::chrono::milliseconds play(int volume, const swift::misc::aviation::CSelcal &selcal);
38
39 private:
40 CThreadedTonePairPlayer *m_threadedPlayer = nullptr;
41 };
42} // namespace swift::sound
43
44#endif // SWIFT_SOUND_SELCALPLAYER_H
Value object encapsulating information of a audio device.
Value object for SELCAL.
Definition selcal.h:31
void gracefulShutdown()
Stop the player thread.
std::chrono::milliseconds play(int volume, const swift::misc::aviation::CSelcal &selcal)
Play SELCAL.
CSelcalPlayer(const swift::misc::audio::CAudioDeviceInfo &device, QObject *parent=nullptr)
Constructor.
Threaded tone player. Don't use it directly but use.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.