mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
add new levels example
This commit is contained in:
28
examples/levels/__main__.py
Normal file
28
examples/levels/__main__.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import logging
|
||||
import time
|
||||
|
||||
import voicemeeterlib
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
|
||||
def main():
|
||||
KIND_ID = "potato"
|
||||
|
||||
vm = voicemeeterlib.api(KIND_ID)
|
||||
vm.login()
|
||||
for _ in range(500):
|
||||
print(
|
||||
"\n".join(
|
||||
[
|
||||
f"{vm.strip[5]}: {vm.strip[5].levels.postmute}",
|
||||
f"{vm.bus[1]}: {vm.bus[0].levels.all}",
|
||||
]
|
||||
)
|
||||
)
|
||||
time.sleep(0.033)
|
||||
vm.logout()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user