- format source code (indentation 4 space
This commit is contained in:
parent
7c346fbe9b
commit
10ec751e43
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
AudioManager::AudioManager()
|
AudioManager::AudioManager()
|
||||||
:mTerminal(nullptr), mAudioMonitoring(nullptr)
|
:mTerminal(nullptr), mAudioMonitoring(nullptr)
|
||||||
{
|
{
|
||||||
mPlayer.setDelegate(this);
|
mPlayer.setDelegate(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@
|
||||||
namespace Audio
|
namespace Audio
|
||||||
{
|
{
|
||||||
|
|
||||||
class WavFileReader
|
class WavFileReader
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
FILE* mHandle;
|
FILE* mHandle;
|
||||||
uint16_t mChannels;
|
uint16_t mChannels;
|
||||||
uint16_t mBits;
|
uint16_t mBits;
|
||||||
|
|
@ -33,7 +33,7 @@ namespace Audio
|
||||||
unsigned mLastError;
|
unsigned mLastError;
|
||||||
|
|
||||||
std::string readChunk();
|
std::string readChunk();
|
||||||
public:
|
public:
|
||||||
WavFileReader();
|
WavFileReader();
|
||||||
~WavFileReader();
|
~WavFileReader();
|
||||||
|
|
||||||
|
|
@ -56,13 +56,13 @@ namespace Audio
|
||||||
size_t size() const;
|
size_t size() const;
|
||||||
|
|
||||||
unsigned lastError() const;
|
unsigned lastError() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::shared_ptr<WavFileReader> PWavFileReader;
|
typedef std::shared_ptr<WavFileReader> PWavFileReader;
|
||||||
|
|
||||||
class WavFileWriter
|
class WavFileWriter
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
FILE* mHandle; /// Handle of audio file.
|
FILE* mHandle; /// Handle of audio file.
|
||||||
std::tstring mFileName; /// Path to requested audio file.
|
std::tstring mFileName; /// Path to requested audio file.
|
||||||
std::recursive_mutex mFileMtx; /// Mutex to protect this instance.
|
std::recursive_mutex mFileMtx; /// Mutex to protect this instance.
|
||||||
|
|
@ -73,7 +73,7 @@ namespace Audio
|
||||||
|
|
||||||
void checkWriteResult(int result);
|
void checkWriteResult(int result);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WavFileWriter();
|
WavFileWriter();
|
||||||
~WavFileWriter();
|
~WavFileWriter();
|
||||||
|
|
||||||
|
|
@ -82,9 +82,9 @@ namespace Audio
|
||||||
bool isOpened();
|
bool isOpened();
|
||||||
size_t write(const void* buffer, size_t bytes);
|
size_t write(const void* buffer, size_t bytes);
|
||||||
std::tstring filename();
|
std::tstring filename();
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::shared_ptr<WavFileWriter> PWavFileWriter;
|
typedef std::shared_ptr<WavFileWriter> PWavFileWriter;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@ class Session;
|
||||||
|
|
||||||
class Account: public resip::DnsResultSink
|
class Account: public resip::DnsResultSink
|
||||||
{
|
{
|
||||||
friend class UserAgent;
|
friend class UserAgent;
|
||||||
friend class NATDecorator;
|
friend class NATDecorator;
|
||||||
public:
|
public:
|
||||||
Account(PVariantMap config, UserAgent& agent);
|
Account(PVariantMap config, UserAgent& agent);
|
||||||
~Account();
|
~Account();
|
||||||
|
|
|
||||||
|
|
@ -486,6 +486,8 @@ void UserAgent::process()
|
||||||
void UserAgent::addRootCert(const ByteBuffer& data)
|
void UserAgent::addRootCert(const ByteBuffer& data)
|
||||||
{
|
{
|
||||||
LOCK;
|
LOCK;
|
||||||
|
if (!mStack)
|
||||||
|
return;
|
||||||
resip::Data b(data.data(), data.size());
|
resip::Data b(data.data(), data.size());
|
||||||
try {
|
try {
|
||||||
mStack->getSecurity()->addRootCertPEM(b);
|
mStack->getSecurity()->addRootCertPEM(b);
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ class UserAgent: public resip::ClientRegistrationHandler,
|
||||||
public resip::ClientPagerMessageHandler,
|
public resip::ClientPagerMessageHandler,
|
||||||
public resip::ServerPagerMessageHandler,
|
public resip::ServerPagerMessageHandler,
|
||||||
public resip::ClientPublicationHandler
|
public resip::ClientPublicationHandler
|
||||||
//public resip::InternalTransport::TransportLogger
|
//public resip::InternalTransport::TransportLogger
|
||||||
{
|
{
|
||||||
friend class Account;
|
friend class Account;
|
||||||
friend class Session;
|
friend class Session;
|
||||||
|
|
@ -356,7 +356,7 @@ public:
|
||||||
virtual void onReferAccepted(resip::InviteSessionHandle, resip::ClientSubscriptionHandle, const resip::SipMessage& msg) override;
|
virtual void onReferAccepted(resip::InviteSessionHandle, resip::ClientSubscriptionHandle, const resip::SipMessage& msg) override;
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
// ClientRegistrationHandler implementation
|
// ClientRegistrationHandler implementation
|
||||||
#pragma region ClientRegistrationHandler implementation
|
#pragma region ClientRegistrationHandler implementation
|
||||||
/// Called when registraion succeeds or each time it is sucessfully
|
/// Called when registraion succeeds or each time it is sucessfully
|
||||||
/// refreshed.
|
/// refreshed.
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#include "EP_Engine.h"
|
#include "EP_Engine.h"
|
||||||
|
|
||||||
WatcherQueue::WatcherQueue(UserAgent& ua)
|
WatcherQueue::WatcherQueue(UserAgent& ua)
|
||||||
:mActiveId(0), mAgent(ua)
|
:mActiveId(0), mAgent(ua)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
WatcherQueue::~WatcherQueue()
|
WatcherQueue::~WatcherQueue()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue