swift
src
sound
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
11
#include "
misc/audio/audiodeviceinfo.h
"
12
#include "
misc/aviation/selcal.h
"
13
#include "
misc/worker.h
"
14
#include "
sound/swiftsoundexport.h
"
15
#include "
sound/threadedtonepairplayer.h
"
16
#include "
sound/tonepair.h
"
17
18
namespace
swift::sound
19
{
21
class
SWIFT_SOUND_EXPORT
CSelcalPlayer
:
public
QObject
22
{
23
Q_OBJECT
24
25
public
:
27
CSelcalPlayer
(
const
swift::misc::audio::CAudioDeviceInfo
&device,
QObject
*parent =
nullptr
);
28
30
virtual
~
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
audiodeviceinfo.h
swift::misc::audio::CAudioDeviceInfo
Value object encapsulating information of a audio device.
Definition:
audiodeviceinfo.h:27
swift::misc::aviation::CSelcal
Value object for SELCAL.
Definition:
selcal.h:31
swift::sound::CSelcalPlayer
SELCAL player.
Definition:
selcalplayer.h:22
swift::sound::CThreadedTonePairPlayer
Threaded tone player. Don't use it directly but use.
Definition:
threadedtonepairplayer.h:28
QObject
selcal.h
swiftsoundexport.h
SWIFT_SOUND_EXPORT
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.
Definition:
swiftsoundexport.h:20
threadedtonepairplayer.h
tonepair.h
worker.h
Generated on Wed Sep 3 2025 21:41:22 for swift by
1.9.1