Commit b702dea2 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2165] Implement run method in audiorecorder

parent 1f85379f
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "recordable.h" #include "recordable.h"
#include "manager.h" #include "manager.h"
Recordable::Recordable() : recorder(&recAudio) Recordable::Recordable() : recorder(&recAudio, Manager::instance().getMainBuffer())
{ {
FILE_TYPE fileType = FILE_WAV; FILE_TYPE fileType = FILE_WAV;
......
...@@ -194,7 +194,7 @@ Call::setRecording() ...@@ -194,7 +194,7 @@ Call::setRecording()
if(!recordStatus) if(!recordStatus)
return false; return false;
MainBuffer *mbuffer = &(Manager::instance()._mainBuffer); MainBuffer *mbuffer = Manager::instance().getMainBuffer();
CallID process_id = Recordable::recorder.getRecorderID(); CallID process_id = Recordable::recorder.getRecorderID();
......
...@@ -167,7 +167,7 @@ bool Conference::setRecording() { ...@@ -167,7 +167,7 @@ bool Conference::setRecording() {
if(!recordStatus) if(!recordStatus)
return false; return false;
MainBuffer *mbuffer = &(Manager::instance()._mainBuffer); MainBuffer *mbuffer = Manager::instance().getMainBuffer();
ParticipantSet::iterator iter = _participants.begin(); ParticipantSet::iterator iter = _participants.begin();
......
...@@ -1240,7 +1240,6 @@ class ManagerImpl { ...@@ -1240,7 +1240,6 @@ class ManagerImpl {
void unloadAccountMap(); void unloadAccountMap();
public:
/** /**
* Instance of the MainBuffer for the whole application * Instance of the MainBuffer for the whole application
* *
...@@ -1251,6 +1250,14 @@ class ManagerImpl { ...@@ -1251,6 +1250,14 @@ class ManagerImpl {
MainBuffer _mainBuffer; MainBuffer _mainBuffer;
public:
/**
* Return a pointer to the instance of the mainbuffer
*/
MainBuffer *getMainBuffer(void) { return &_mainBuffer; }
/** /**
* Tell if there is a current call processed * Tell if there is a current call processed
* @return bool True if there is a current call * @return bool True if there is a current call
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment