2023-06-23 17:54:08 +01:00
|
|
|
import logging
|
|
|
|
import time
|
|
|
|
|
|
|
|
import voicemeeterlib
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2025-01-15 12:40:31 +00:00
|
|
|
KIND_ID = 'potato'
|
2023-06-23 17:54:08 +01:00
|
|
|
|
|
|
|
vm = voicemeeterlib.api(KIND_ID)
|
|
|
|
vm.login()
|
|
|
|
for _ in range(500):
|
|
|
|
print(
|
2025-01-15 12:40:31 +00:00
|
|
|
'\n'.join(
|
2023-06-23 17:54:08 +01:00
|
|
|
[
|
2025-01-15 12:40:31 +00:00
|
|
|
f'{vm.strip[5]}: {vm.strip[5].levels.postmute}',
|
|
|
|
f'{vm.bus[0]}: {vm.bus[0].levels.all}',
|
2023-06-23 17:54:08 +01:00
|
|
|
]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
time.sleep(0.033)
|
|
|
|
vm.logout()
|
|
|
|
|
|
|
|
|
2025-01-15 12:40:31 +00:00
|
|
|
if __name__ == '__main__':
|
2023-06-23 17:54:08 +01:00
|
|
|
main()
|