mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
removed list audio devices
This commit is contained in:
parent
3ffac2e90e
commit
0cbc70320b
2 changed files with 0 additions and 19 deletions
16
helpers.py
16
helpers.py
|
@ -113,19 +113,3 @@ def setup_logging():
|
|||
#'ERROR' : 31, # red
|
||||
#'CRITICAL': 41, # white on red bg
|
||||
|
||||
|
||||
|
||||
def list_audio_devices():
|
||||
p = pyaudio.PyAudio()
|
||||
devices = []
|
||||
for x in range(0, p.get_device_count()):
|
||||
devices.append(f"{x} - {p.get_device_info_by_index(x)['name']}")
|
||||
|
||||
for line in devices:
|
||||
print(line)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
3
main.py
3
main.py
|
@ -24,9 +24,6 @@ if __name__ == '__main__':
|
|||
# config logging
|
||||
helpers.setup_logging()
|
||||
|
||||
# list audio devices
|
||||
helpers.list_audio_devices()
|
||||
|
||||
|
||||
#--------------------------------------------GET PARAMETER INPUTS
|
||||
parser = argparse.ArgumentParser(description='Simons TEST TNC')
|
||||
|
|
Loading…
Reference in a new issue