From d91981cfae1b2f1502422347bda24b14e7bb6db2 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 11 Nov 2018 18:28:10 +0100 Subject: DLS: add support to request DLS file re-read A re-read of any of the used DLS files can now be requested by storing a file with the same filename which is suffixed by `.REQUEST_DLS_REREAD`. When the next PAD is going to be encoded and such a file is present, the encoder changes the current DLS file to the related DLS file, if needed (only applies if multiple DLS files are used). The DLS file is re-read and the request file is deleted. The DLS is also immediately inserted into the PAD transmission. --- src/dls.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dls.cpp') diff --git a/src/dls.cpp b/src/dls.cpp index e5f6f27..74b1131 100644 --- a/src/dls.cpp +++ b/src/dls.cpp @@ -38,6 +38,7 @@ const std::string DLSEncoder::DL_PARAMS_OPEN = "##### parameters { #####"; const std::string DLSEncoder::DL_PARAMS_CLOSE = "##### parameters } #####"; const int DLSEncoder::APPTYPE_START = 2; const int DLSEncoder::APPTYPE_CONT = 3; +const std::string DLSEncoder::REQUEST_REREAD_SUFFIX = ".REQUEST_DLS_REREAD"; -- cgit v1.2.3