From 222e277c57769486800a43bc758175567231db40 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Mon, 6 Feb 2017 23:56:42 +0100 Subject: PAD: insert DLS regularly while SLS transmission When a slide is transmitted, now every 50 PADs the current DLS is inserted (and thereby reread from file). Hence in the best case (AAC-LC @ 48 kHz), DLS is inserted every 1000ms; in the worst case (HE-AAC @ 32 kHz) it is inserted every 3000ms. This way a listener will get DLS much earlier after switching to a service, compared to the previous situation where the slide transmission was not interrupted for DLS insertion. Note that there still remains a delay without any PAD, between the end of a slide transmission and the start of the next one's transmission. Also note that adding a feedback channel from the audio encoder to ODR-PadEnc will make this improvement obsolete. --- src/pad_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pad_common.h') diff --git a/src/pad_common.h b/src/pad_common.h index c997d83..c3ee01d 100644 --- a/src/pad_common.h +++ b/src/pad_common.h @@ -105,9 +105,10 @@ public: void AddDG(DATA_GROUP* dg, bool prepend); void AddDGs(const std::vector& dgs, bool prepend); + bool QueueFilled(); pad_t* GetPAD(); // will be removed, when pull (instead of push) approach is implemented! - void WriteAllPADs(int output_fd); + void WriteAllPADs(int output_fd, int limit = -1); }; -- cgit v1.2.3