1
0
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:
Nils Fenner 2015-11-08 21:09:38 +01:00
parent 7b98f2a4a0
commit ad6e0a85f5
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -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();