summaryrefslogtreecommitdiff
path: root/src/chresampler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 20:26:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 20:26:13 +0200
commit195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (patch)
tree8bcb0a8ee9431ae5e00369354b22ed5763cc75fc /src/chresampler.cc
parente43a808290630b4a0810b283ad1e3b9411bb3016 (diff)
Add basic latency reporting methods.
Diffstat (limited to 'src/chresampler.cc')
-rw-r--r--src/chresampler.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/chresampler.cc b/src/chresampler.cc
index c8323de..c3c19bf 100644
--- a/src/chresampler.cc
+++ b/src/chresampler.cc
@@ -139,6 +139,15 @@ void CHResampler::process()
#endif
}
+std::size_t CHResampler::getLatency() const
+{
+#if defined(USE_ZITA)
+ return prv->zita.inpdist();
+#elif defined(USE_SRC)
+ return 0; // TODO?
+#endif
+}
+
std::size_t CHResampler::getInputSampleCount() const
{
#if defined(USE_ZITA)
@@ -172,6 +181,11 @@ void CHResampler::setInputSamples(float*, std::size_t) {}
void CHResampler::setOutputSamples(float*, std::size_t) {}
void CHResampler::process() {}
+std::size_t CHResampler::getLatency() const
+{
+ return 0;
+}
+
std::size_t CHResampler::getInputSampleCount() const
{
return 0;