Skip to content
Snippets Groups Projects
Commit b702dea2 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2165] Implement run method in audiorecorder

parent 1f85379f
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@
#include "recordable.h"
#include "manager.h"
Recordable::Recordable() : recorder(&recAudio)
Recordable::Recordable() : recorder(&recAudio, Manager::instance().getMainBuffer())
{
FILE_TYPE fileType = FILE_WAV;
......
......@@ -194,7 +194,7 @@ Call::setRecording()
if(!recordStatus)
return false;
MainBuffer *mbuffer = &(Manager::instance()._mainBuffer);
MainBuffer *mbuffer = Manager::instance().getMainBuffer();
CallID process_id = Recordable::recorder.getRecorderID();
......
......@@ -167,7 +167,7 @@ bool Conference::setRecording() {
if(!recordStatus)
return false;
MainBuffer *mbuffer = &(Manager::instance()._mainBuffer);
MainBuffer *mbuffer = Manager::instance().getMainBuffer();
ParticipantSet::iterator iter = _participants.begin();
......
......@@ -1240,7 +1240,6 @@ class ManagerImpl {
void unloadAccountMap();
public:
/**
* Instance of the MainBuffer for the whole application
*
......@@ -1251,6 +1250,14 @@ class ManagerImpl {
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
* @return bool True if there is a current call
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment