mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #704, moved VATSIM specific stuff to ns VATSIM/subdir
This commit is contained in:
37
src/blackcore/vatsim/audiomixervatlib.cpp
Normal file
37
src/blackcore/vatsim/audiomixervatlib.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift project community / contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "blackcore/vatsim/audiomixervatlib.h"
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
namespace Vatsim
|
||||
{
|
||||
CAudioMixerVatlib::CAudioMixerVatlib(QObject *parent)
|
||||
: IAudioMixer(parent)
|
||||
{
|
||||
m_audioMixer.reset(Vat_CreateAudioMixer());
|
||||
}
|
||||
|
||||
void CAudioMixerVatlib::makeMixerConnection(InputPort inputPort, OutputPort outputPort)
|
||||
{
|
||||
Vat_MakeMixerConnection(m_audioMixer.data(), inputPort, outputPort, true);
|
||||
}
|
||||
|
||||
void CAudioMixerVatlib::removeMixerConnection(InputPort inputPort, OutputPort outputPort)
|
||||
{
|
||||
Vat_MakeMixerConnection(m_audioMixer.data(), inputPort, outputPort, false);
|
||||
}
|
||||
|
||||
bool CAudioMixerVatlib::hasMixerConnection(InputPort inputPort, OutputPort outputPort)
|
||||
{
|
||||
return Vat_HasMixerConnection(m_audioMixer.data(), inputPort, outputPort);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
Reference in New Issue
Block a user