![]() |
LASP 1.0
Library for Acoustic Signal Processing
|
Implementation of a buffer of time samples, where. More...
#include <lasp_timebuffer.h>
Public Member Functions | |
| TimeBuffer () | |
| ~TimeBuffer () | |
| void | push (const dmat &mat) |
| Put samples in the buffer. Number of channels should match other frames, otherwise things go wrong. | |
| void | reset () |
| Reset (empties) the time buffer. | |
| us | size () const |
| Returns current size of stored amount of frames. | |
| dmat | pop (const us nframes, const us keep=0) |
| Pop frames from the buffer. Throws a runtime error if more frames are requested than actually stored. | |
Implementation of a buffer of time samples, where.
Definition at line 10 of file lasp_timebuffer.h.
| TimeBuffer::TimeBuffer | ( | ) |
Definition at line 82 of file lasp_timebuffer.cpp.
| TimeBuffer::~TimeBuffer | ( | ) |
Definition at line 86 of file lasp_timebuffer.cpp.
Pop frames from the buffer. Throws a runtime error if more frames are requested than actually stored.
| nframes | The number of rows |
| keep | The number of frames to copy, but also to keep in the buffer (usage: overlap) |
Definition at line 83 of file lasp_timebuffer.cpp.
| void TimeBuffer::push | ( | const dmat & | mat | ) |
Put samples in the buffer. Number of channels should match other frames, otherwise things go wrong.
| mat | Samples to push, axes should be as mat(frame, channel). |
Definition at line 88 of file lasp_timebuffer.cpp.
| void TimeBuffer::reset | ( | ) |
Reset (empties) the time buffer.
Definition at line 87 of file lasp_timebuffer.cpp.
| us TimeBuffer::size | ( | ) | const |
Returns current size of stored amount of frames.
Definition at line 89 of file lasp_timebuffer.cpp.