aboutsummaryrefslogtreecommitdiffstats
path: root/src/pad_common.h
diff options
context:
space:
mode:
authorStefan Pöschel <spoeschel@irt.de>2017-02-06 23:56:42 +0100
committerStefan Pöschel <spoeschel@irt.de>2017-02-06 23:56:42 +0100
commit222e277c57769486800a43bc758175567231db40 (patch)
treeea9e8d67e2db38023238caed3058e5e5b6ccb24f /src/pad_common.h
parent0f3a52cbc8abde43ef6ed584eb2403960d994fc1 (diff)
downloadODR-PadEnc-222e277c57769486800a43bc758175567231db40.tar.gz
ODR-PadEnc-222e277c57769486800a43bc758175567231db40.tar.bz2
ODR-PadEnc-222e277c57769486800a43bc758175567231db40.zip
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.
Diffstat (limited to 'src/pad_common.h')
-rw-r--r--src/pad_common.h3
1 files changed, 2 insertions, 1 deletions
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<DATA_GROUP*>& 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);
};