mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
add method to reinit audio in/out
This commit is contained in:
parent
7b98f2a4a0
commit
ad6e0a85f5
|
@ -67,6 +67,19 @@ public:
|
|||
void openInput(const QString& inDevDescr);
|
||||
bool openOutput(const QString& outDevDescr);
|
||||
|
||||
inline void reinitInput(const QString& inDevDesc)
|
||||
{
|
||||
QMutexLocker locker(&audioInLock);
|
||||
cleanupInput();
|
||||
initInput(inDevDesc);
|
||||
}
|
||||
inline bool reinitOutput(const QString& outDevDesc)
|
||||
{
|
||||
QMutexLocker locker(&audioOutLock);
|
||||
cleanupOutput();
|
||||
return initOutput(outDevDesc);
|
||||
}
|
||||
|
||||
bool isInputReady();
|
||||
bool isInputSubscribed();
|
||||
bool isOutputReady();
|
||||
|
|
Loading…
Reference in New Issue
Block a user