refs #372 Move voice channel sharing into CContextAudio

Before a very complex mechanism was implemented in order to share
a vatlib voice channel resource if more than one COM unit was connected
to the same channel. This is now moved into CContextAudio by mapping
a COM unit to a shared voice channel pointer.
This commit is contained in:
Roland Winklmeier
2015-02-03 21:22:11 +01:00
committed by Klaus Basan
parent 33dddf795e
commit 84ac5e9972
12 changed files with 354 additions and 530 deletions

View File

@@ -18,6 +18,7 @@
#include "../blackmisc/statusmessage.h"
#include <QObject>
#include <QSharedPointer>
#include <memory>
@@ -40,7 +41,7 @@ namespace BlackCore
virtual ~IVoice() {}
//! Create voice channel object
virtual std::unique_ptr<IVoiceChannel> createVoiceChannel() = 0;
virtual QSharedPointer<IVoiceChannel> createVoiceChannel() = 0;
//! Create input device object
virtual std::unique_ptr<IAudioInputDevice> createInputDevice() = 0;