diff --git a/poetry.lock b/poetry.lock index 19929f6..2129030 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,3 +1,70 @@ +[[package]] +name = "black" +version = "22.6.0" +description = "The uncompromising code formatter." +category = "dev" +optional = false +python-versions = ">=3.6.2" + +[package.dependencies] +click = ">=8.0.0" +mypy-extensions = ">=0.4.3" +pathspec = ">=0.9.0" +platformdirs = ">=2" + +[package.extras] +colorama = ["colorama (>=0.4.3)"] +d = ["aiohttp (>=3.7.4)"] +jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] +uvloop = ["uvloop (>=0.15.2)"] + +[[package]] +name = "click" +version = "8.1.3" +description = "Composable command line interface toolkit" +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[[package]] +name = "colorama" +version = "0.4.5" +description = "Cross-platform colored terminal text." +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "mypy-extensions" +version = "0.4.3" +description = "Experimental type system extensions for programs checked with the mypy typechecker." +category = "dev" +optional = false +python-versions = "*" + +[[package]] +name = "pathspec" +version = "0.9.0" +description = "Utility library for gitignore style pattern matching of file paths." +category = "dev" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" + +[[package]] +name = "platformdirs" +version = "2.5.2" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.extras] +docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"] +test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"] + [[package]] name = "sv-ttk" version = "0.1" @@ -8,7 +75,7 @@ python-versions = ">=3.4" [[package]] name = "vban-cmd" -version = "1.0.8" +version = "1.1.0" description = "Python interface for the VBAN RT Packet Service (Sendtext)" category = "main" optional = false @@ -16,7 +83,7 @@ python-versions = ">=3.11,<4.0" [[package]] name = "voicemeeter-api" -version = "0.1.9" +version = "0.2.0" description = "A Python wrapper for the Voiceemeter API" category = "main" optional = false @@ -25,18 +92,63 @@ python-versions = ">=3.11,<4.0" [metadata] lock-version = "1.1" python-versions = "^3.11" -content-hash = "bc26459921a17e44de1271983fbb516db483b4882551a33286369081abd33e3d" +content-hash = "dcaa0301e8c57fdfe23813d6f094cc115cdf9fd7e252379a1b9258e1ae4ee54d" [metadata.files] +black = [ + {file = "black-22.6.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f586c26118bc6e714ec58c09df0157fe2d9ee195c764f630eb0d8e7ccce72e69"}, + {file = "black-22.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b270a168d69edb8b7ed32c193ef10fd27844e5c60852039599f9184460ce0807"}, + {file = "black-22.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6797f58943fceb1c461fb572edbe828d811e719c24e03375fd25170ada53825e"}, + {file = "black-22.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c85928b9d5f83b23cee7d0efcb310172412fbf7cb9d9ce963bd67fd141781def"}, + {file = "black-22.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:f6fe02afde060bbeef044af7996f335fbe90b039ccf3f5eb8f16df8b20f77666"}, + {file = "black-22.6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cfaf3895a9634e882bf9d2363fed5af8888802d670f58b279b0bece00e9a872d"}, + {file = "black-22.6.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94783f636bca89f11eb5d50437e8e17fbc6a929a628d82304c80fa9cd945f256"}, + {file = "black-22.6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:2ea29072e954a4d55a2ff58971b83365eba5d3d357352a07a7a4df0d95f51c78"}, + {file = "black-22.6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e439798f819d49ba1c0bd9664427a05aab79bfba777a6db94fd4e56fae0cb849"}, + {file = "black-22.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:187d96c5e713f441a5829e77120c269b6514418f4513a390b0499b0987f2ff1c"}, + {file = "black-22.6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:074458dc2f6e0d3dab7928d4417bb6957bb834434516f21514138437accdbe90"}, + {file = "black-22.6.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a218d7e5856f91d20f04e931b6f16d15356db1c846ee55f01bac297a705ca24f"}, + {file = "black-22.6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:568ac3c465b1c8b34b61cd7a4e349e93f91abf0f9371eda1cf87194663ab684e"}, + {file = "black-22.6.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:6c1734ab264b8f7929cef8ae5f900b85d579e6cbfde09d7387da8f04771b51c6"}, + {file = "black-22.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9a3ac16efe9ec7d7381ddebcc022119794872abce99475345c5a61aa18c45ad"}, + {file = "black-22.6.0-cp38-cp38-win_amd64.whl", hash = "sha256:b9fd45787ba8aa3f5e0a0a98920c1012c884622c6c920dbe98dbd05bc7c70fbf"}, + {file = "black-22.6.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7ba9be198ecca5031cd78745780d65a3f75a34b2ff9be5837045dce55db83d1c"}, + {file = "black-22.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a3db5b6409b96d9bd543323b23ef32a1a2b06416d525d27e0f67e74f1446c8f2"}, + {file = "black-22.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:560558527e52ce8afba936fcce93a7411ab40c7d5fe8c2463e279e843c0328ee"}, + {file = "black-22.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b154e6bbde1e79ea3260c4b40c0b7b3109ffcdf7bc4ebf8859169a6af72cd70b"}, + {file = "black-22.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:4af5bc0e1f96be5ae9bd7aaec219c901a94d6caa2484c21983d043371c733fc4"}, + {file = "black-22.6.0-py3-none-any.whl", hash = "sha256:ac609cf8ef5e7115ddd07d85d988d074ed00e10fbc3445aee393e70164a2219c"}, + {file = "black-22.6.0.tar.gz", hash = "sha256:6c6d39e28aed379aec40da1c65434c77d75e65bb59a1e1c283de545fb4e7c6c9"}, +] +click = [ + {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, + {file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"}, +] +colorama = [ + {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"}, + {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"}, +] +mypy-extensions = [ + {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, + {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, +] +pathspec = [ + {file = "pathspec-0.9.0-py2.py3-none-any.whl", hash = "sha256:7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a"}, + {file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"}, +] +platformdirs = [ + {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"}, + {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"}, +] sv-ttk = [ {file = "sv_ttk-0.1-py3-none-any.whl", hash = "sha256:c47ab1c70aad0333bc7f5063ab55e8a16b562e700e89e7853e577a1e2fdaa091"}, {file = "sv_ttk-0.1.tar.gz", hash = "sha256:342754618292b6d224060307eccaa35b6f6c284b34b4da1d0cf0484b652ffb0f"}, ] vban-cmd = [ - {file = "vban-cmd-1.0.8.tar.gz", hash = "sha256:82d2914dcd205aa58226f54408d04b66a33b2cca7ec935c51cac4b94c3bf3e04"}, - {file = "vban_cmd-1.0.8-py3-none-any.whl", hash = "sha256:f551728b6cb46498b03204a991a0d8bcad4a14f6901cb1770ee943c1bde87c73"}, + {file = "vban-cmd-1.1.0.tar.gz", hash = "sha256:31ba325b111fca27182d5ef96da9d80ffa01cb3d23493527c7e3c3279386771a"}, + {file = "vban_cmd-1.1.0-py3-none-any.whl", hash = "sha256:a2b1ab3c3f5c307f12efc11863eb4e77d6f74dfccc21996c0eb2d1bd4abbc747"}, ] voicemeeter-api = [ - {file = "voicemeeter-api-0.1.9.tar.gz", hash = "sha256:9bf0668fe8f181fdc80becaa25cb5f981e5c56b90fd235e128e2a7d30b10e015"}, - {file = "voicemeeter_api-0.1.9-py3-none-any.whl", hash = "sha256:c69754f4f40592df13be29e3a3d61935e96780cf13ef8b4b284b2ca34f6cebde"}, + {file = "voicemeeter-api-0.2.0.tar.gz", hash = "sha256:fcaf21096d54278cf16cc7fe1fd1fee51cc9ab7bdba7f81a39e155c8ec24ef3a"}, + {file = "voicemeeter_api-0.2.0-py3-none-any.whl", hash = "sha256:2cd943ab271df9f1646d5cd76928ba74aa5568a843736a80908db373037fc753"}, ] diff --git a/pyproject.toml b/pyproject.toml index a7bf569..fdedf4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ voicemeeter-api = { version = "^0.2.0", python = "^3.10" } vban-cmd = { version = "^1.1.0", python = "^3.10" } [tool.poetry.dev-dependencies] +black = {version = "^22.6.0", allow-prereleases = true} [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/vmcompact/channels.py b/vmcompact/channels.py index e3c5c6b..99bd3bd 100644 --- a/vmcompact/channels.py +++ b/vmcompact/channels.py @@ -159,8 +159,6 @@ class Strip(ChannelLabelFrame): def upd_levels(self): """ Updates level values. - - Checks offset against expected level array size to avoid a race condition """ if self.target.levels.is_updated: val = max(self.target.levels.prefader) diff --git a/vmcompact/gainlayer.py b/vmcompact/gainlayer.py index 7c2f52e..1d99831 100644 --- a/vmcompact/gainlayer.py +++ b/vmcompact/gainlayer.py @@ -130,8 +130,6 @@ class GainLayer(ttk.LabelFrame): def upd_levels(self): """ Updates level values. - - Checks offset against expected level array size to avoid a race condition """ if self.parent.target.strip[self.index].levels.is_updated: