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