summaryrefslogtreecommitdiff
path: root/src/chresampler.cc
diff options
context:
space:
mode:
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;