|
HART
0.2.0
High level Audio Regression and Testing
|
Container for representing an impulse response (IR) More...
#include <hart_impulse_response.hpp>
Public Member Functions | |
| ImpulseResponse (AudioBuffer< SampleType > input, AudioBuffer< SampleType > output) | |
| Create an IR instance from a pait of time-domain signals. | |
| size_t | getNumChannels () const |
| Get number of channels. | |
| size_t | getNumFrames () const |
| Get number of frames (samples) | |
| double | getSampleRateHz () const |
| Get a sample rate metadata. | |
| void | represent (std::ostream &stream) const |
| Prints readable representation of the IR. | |
| const SampleType * | operator[] (size_t channel) const |
| Get a raw pointer to a specific channel's read-only audio data. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::ostream & | operator<< (std::ostream &stream, const ImpulseResponse &ir) |
| Prints readable text representation of the ImpulseResponse object into the I/O stream. | |
Container for representing an impulse response (IR)
It is guaranteed to have a specific sample rate associated with it
Definition at line 21 of file hart_impulse_response.hpp.
|
inline |
Create an IR instance from a pait of time-domain signals.
| hart::SampleRateError | if provided audio buffers either don't have sample rate, or it has invalid value |
| hart::SizeError | if the lengths of provided buffers (in frames) don't match |
| hart::ChannelLayoutError | if numbers of channels of the provided buffers don't match |
Definition at line 35 of file hart_impulse_response.hpp.
|
inline |
Get number of channels.
Definition at line 90 of file hart_impulse_response.hpp.
|
inline |
Get number of frames (samples)
Definition at line 94 of file hart_impulse_response.hpp.
|
inline |
Get a sample rate metadata.
Definition at line 98 of file hart_impulse_response.hpp.
|
inline |
Prints readable representation of the IR.
| stream | String stream to append the representation to |
Definition at line 110 of file hart_impulse_response.hpp.
|
inline |
Get a raw pointer to a specific channel's read-only audio data.
getNumFrames() items and to be a contiguous non-interleaved block of memory. Definition at line 118 of file hart_impulse_response.hpp.
|
friend |
Prints readable text representation of the ImpulseResponse object into the I/O stream.
Definition at line 125 of file hart_impulse_response.hpp.