dhobsd / castty

A CLI tool to record audio-enabled screencasts of your terminal, for the web.
Other
117 stars 15 forks source link

Audio inputs with duplicated names #36

Closed Cat-Ion closed 4 years ago

Cat-Ion commented 4 years ago

When multiple audio devices have the same name, it is impossible to select anything but the first of them.

A proof of concept for a solution would be this patch, which will also allow you to specify an index with -d - although it would also make sense to have a separate option for that, to prevent confusion if a device has an integer as its name.

dhobsd commented 4 years ago

Sorry for the delay in reply!

I just pushed 7443dc271681f3ad, which I think may solve the problem. The device ID output in the enumeration is supposed to be distinct, but it's possible the device is accessible both directly and via some sound proxy like dmix or pulse.

I'm closing this issue since this is the likely fix. If you're still experiencing this problem, please let me know! I'd especially appreciate the output of castty record -l.