diff --git a/config/__init__.py b/config/__init__.py index a13a720..5e281ba 100755 --- a/config/__init__.py +++ b/config/__init__.py @@ -51,13 +51,14 @@ def __init__(self,config_file, logger): # Source configuration if self.source_type == 'alsa': self.source_device = self.ConfigSectionMap('source')['device'] - if self.ConfigSectionMap('source')['driftcomp'].upper() == 'TRUE': - self.source_driftcomp = True - else: - self.source_driftcomp = False if self.source_type == 'stream': self.source_url = self.ConfigSectionMap('source')['url'] self.source_volume = self.ConfigSectionMap('source')['volume'] + + if self.ConfigSectionMap('source')['driftcomp'].upper() == 'TRUE': + self.source_driftcomp = True + else: + self.source_driftcomp = False # Output configuration self.output_zmq_host = self.ConfigSectionMap('output')['zmq_host'] diff --git a/encoder.py b/encoder.py index d30d8b0..7b2bc5f 100755 --- a/encoder.py +++ b/encoder.py @@ -116,6 +116,10 @@ def run_encoder(self): args += ' -D' if self.config.source_type == 'stream': args += ' --vlc-uri=%s' % (self.config.source_url) + logger.warn('%s' % args) + if self.config.source_driftcomp == True: + args += ' -D' + logger.warn('%s' % args) args += ' -b %s -r %s' % (self.config.output_bitrate, self.config.output_samplerate) if self.config.output_sbr == True: diff --git a/static/config.html b/static/config.html index 91b8eb4..2e5eb9f 100755 --- a/static/config.html +++ b/static/config.html @@ -103,6 +103,13 @@

+ +
+ +

@@ -112,13 +119,7 @@

Source alsa

- -
- -
+