shichao-an / soundmeter

Simple real-time sound meter
https://soundmeter.shichao.io
BSD 2-Clause "Simplified" License
82 stars 27 forks source link

Set input by name? Or otherwise consistent input_device_index? #24

Open chuckofalltrades opened 5 years ago

chuckofalltrades commented 5 years ago

I created profiles to set a input_device_index - The issue I'm having is that that number seems to change frequently, presumably every time I plug/unplug different inputs.

My entire need in the profile is consistency, so I can just run soundmeter --profile mic1 and know it's listening to that input. But since sometimes Mic1 is on index 3 and sometimes it's on index 5, it requires me to manually find the index and change the profile every time.

Am I missing something?