Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/DspRate.h')
-rw-r--r--src/DspRate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DspRate.h b/src/DspRate.h
index 0124a07..48e77fb 100644
--- a/src/DspRate.h
+++ b/src/DspRate.h
@@ -25,6 +25,8 @@ namespace SaneAudioRenderer
void Process(DspChunk& chunk) override;
void Finish(DspChunk& chunk) override;
+ void Adjust(REFERENCE_TIME time);
+
private:
enum class State
@@ -39,6 +41,7 @@ namespace SaneAudioRenderer
void FinishStateTransition(DspChunk& processedChunk, DspChunk& unprocessedChunk, bool eos);
+ void CreateBackend();
soxr_t GetBackend();
void DestroyBackends();
@@ -54,5 +57,11 @@ namespace SaneAudioRenderer
uint32_t m_inputRate = 0;
uint32_t m_outputRate = 0;
uint32_t m_channels = 0;
+
+ uint64_t m_variableInputFrames = 0;
+ uint64_t m_variableOutputFrames = 0;
+ uint64_t m_variableDelay = 0; // In input samples.
+
+ REFERENCE_TIME m_adjustTime = 0; // Negative time - less samples, positive time - more samples.
};
}