mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Ref T730, stop input/output if object is destroyed
This commit is contained in:
committed by
Mat Sutcliffe
parent
5eb3dee829
commit
e560be65a6
@@ -85,6 +85,12 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CInput(int sampleRate, QObject *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CInput() override
|
||||
{
|
||||
this->stop();
|
||||
}
|
||||
|
||||
int opusBytesEncoded() const { return m_opusBytesEncoded; }
|
||||
void setOpusBytesEncoded(int opusBytesEncoded) { m_opusBytesEncoded = opusBytesEncoded; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user