mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Graceful shutdown of SELCAL player with audio context
This commit is contained in:
committed by
Mat Sutcliffe
parent
87a9059a05
commit
dab907df8c
@@ -24,6 +24,11 @@ namespace BlackSound
|
||||
}
|
||||
|
||||
CSelcalPlayer::~CSelcalPlayer()
|
||||
{
|
||||
this->gracefulShutdown();
|
||||
}
|
||||
|
||||
void CSelcalPlayer::gracefulShutdown()
|
||||
{
|
||||
m_threadedPlayer.quitAndWait();
|
||||
}
|
||||
|
||||
@@ -32,6 +32,9 @@ namespace BlackSound
|
||||
//! Destructor
|
||||
virtual ~CSelcalPlayer() override;
|
||||
|
||||
//! Stop the player thread
|
||||
void gracefulShutdown();
|
||||
|
||||
//! Play SELCAL
|
||||
//! \return Time of the played tone
|
||||
BlackMisc::PhysicalQuantities::CTime play(int volume, const BlackMisc::Aviation::CSelcal &selcal);
|
||||
|
||||
Reference in New Issue
Block a user