LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp_streammgr.cpp File Reference
#include "lasp_streammgr.h"
#include "debugtrace.hpp"
#include "lasp_biquadbank.h"
#include "lasp_indatahandler.h"
#include "lasp_thread.h"
#include <algorithm>
#include <assert.h>
#include <functional>
#include <iostream>
#include <memory>
#include <mutex>
Include dependency graph for lasp_streammgr.cpp:

Go to the source code of this file.

Macros

#define DEBUG_FILLDATA   0
 

Typedefs

using rte = std::runtime_error
 
using Lck = std::scoped_lock< std::mutex >
 

Functions

template<typename T >
bool fillData (DaqData &data, const vd &signal)
 Converts from double precision floating point to output signal in non-interleaving format.
 

Variables

std::weak_ptr< StreamMgr_mgr
 The main global handle to a stream, stored in a weak pointer, if it does not yet exist, via StreamMgr::getInstance, a new stream mgr is created. It also makes sure that the stream manager is deleted once the latest handle to it has been destroyed (no global stuff left).
 
std::mutex _mgr_mutex
 

Macro Definition Documentation

◆ DEBUG_FILLDATA

#define DEBUG_FILLDATA   0

Definition at line 171 of file lasp_streammgr.cpp.

Typedef Documentation

◆ Lck

using Lck = std::scoped_lock<std::mutex>

Definition at line 27 of file lasp_streammgr.cpp.

◆ rte

using rte = std::runtime_error

Definition at line 16 of file lasp_streammgr.cpp.

Function Documentation

◆ fillData()

template<typename T >
bool fillData ( DaqData data,
const vd signal 
)

Converts from double precision floating point to output signal in non-interleaving format.

Template Parameters
T
Parameters
data
signal
Returns

Definition at line 182 of file lasp_streammgr.cpp.

Variable Documentation

◆ _mgr

std::weak_ptr<StreamMgr> _mgr

The main global handle to a stream, stored in a weak pointer, if it does not yet exist, via StreamMgr::getInstance, a new stream mgr is created. It also makes sure that the stream manager is deleted once the latest handle to it has been destroyed (no global stuff left).

Definition at line 24 of file lasp_streammgr.cpp.

◆ _mgr_mutex

std::mutex _mgr_mutex

Definition at line 25 of file lasp_streammgr.cpp.