mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-16 00:40:46 +00:00
29 lines
515 B
Python
29 lines
515 B
Python
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[0]}: {vm.bus[0].levels.all}",
|
|
]
|
|
)
|
|
)
|
|
time.sleep(0.033)
|
|
vm.logout()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|