mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
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:
committed by
Klaus Basan
parent
33dddf795e
commit
84ac5e9972
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user