mdonoughe / sbz-switch

Utility for switching Sound Blaster outputs on Windows
Apache License 2.0
43 stars 5 forks source link

Implement GET function for query audiocard state #8

Closed sourav-txt closed 2 years ago

sourav-txt commented 2 years ago

Please implement a get function similar to Set for querying audio card various states so that we can have scripts to auto switch devices etc.

mdonoughe commented 2 years ago

Can you use dump command? It gets all parameters.

PowerShell:

$parms = sbz-switch dump -f json | ConvertFrom-Json
$output = $params.creative.'Device Control'.SelectOutput
sourav-txt commented 2 years ago

That will be a solution. But it would be great if we dont have to parse the whole dump. You can close this ticket if you want. But a GET would be great solution as well