Fix max chan bug

This commit is contained in:
xssfox 2024-11-13 21:02:32 +11:00
parent 864e56f4ca
commit 35675b7b78
2 changed files with 3 additions and 2 deletions

View file

@ -98,7 +98,8 @@ class InputDevice():
logging.debug(f"Opening {self.device.name} for input")
if self.device.input_channels >= 2:
logging.warning("Stereo (or more) input detected - Only the first/left channel will be used")
self.device.input_channels = 2
logging.warning("Stereo (or more) input detected - Only the first/left channel will be used. Will open only 2 channels")
if self.device.sample_rate < sample_rate:
logging.critical(f"Input audio device sample rate {self.device.sample_rate} is less than modems sample rate {sample_rate} - this will cause problems")

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "freedvtnc2"
version = "0.0.1"
version = "0.0.2"
description = ""
authors = ["xssfox <xss@sprocketfox.io>"]
readme = "README.md"