diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 20:26:13 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 20:26:13 +0200 |
commit | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (patch) | |
tree | 8bcb0a8ee9431ae5e00369354b22ed5763cc75fc /src/chresampler.h | |
parent | e43a808290630b4a0810b283ad1e3b9411bb3016 (diff) |
Add basic latency reporting methods.
Diffstat (limited to 'src/chresampler.h')
-rw-r--r-- | src/chresampler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/chresampler.h b/src/chresampler.h index 4148aee..d21d1cb 100644 --- a/src/chresampler.h +++ b/src/chresampler.h @@ -48,6 +48,8 @@ public: void process(); + std::size_t getLatency() const; + std::size_t getInputSampleCount() const; std::size_t getOutputSampleCount() const; @@ -96,5 +98,10 @@ public: return resamplers[0].getOutputSampleCount(); } + std::size_t getLatency() const + { + return resamplers[0].getLatency(); + } + std::array<CHResampler, 64> resamplers; }; |