File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,11 @@ static void show_help() {
218218 THROW_IF_FAILED (pEndpoints->Item (i, &pDevice));
219219 THROW_IF_FAILED (pDevice->GetId (&pwszID));
220220 string dev_id = win_wstr_to_str (pwszID);
221- col () << (dev_id == default_dev_id ? " (*)" : " " ) << " \t " << SBOLD (i) << " ) " << SBOLD (get_name (pDevice)) << " (ID: " << dev_id << " )\n " ;
221+ color_printf (
222+ " %s\t " TBOLD (" %2d" ) " ) " TBOLD (
223+ " %s" ) " (ID: %s)\n " ,
224+ (dev_id == default_dev_id ? " (*)" : " " ), i,
225+ get_name (pDevice).c_str (), dev_id.c_str ());
222226 } catch (ug_runtime_error &e) {
223227 LOG (LOG_LEVEL_WARNING) << MOD_NAME << " Device " << i << " : " << e.what () << " \n " ;
224228 }
@@ -230,7 +234,7 @@ static void show_help() {
230234 SAFE_RELEASE (enumerator);
231235 SAFE_RELEASE (pEndpoints);
232236 com_uninitialize (&com_initialized);
233- col () << " " << SBOLD (" loopback" ) << " ) " << SBOLD (" computer audio output" ) << " (ID: loopback)\n " ;
237+ col () << " " << SBOLD (" loopback" ) << " ) " << SBOLD (" computer audio output" ) << " (ID: loopback)\n " ;
234238}
235239
236240static void * audio_cap_wasapi_init (struct module *parent, const char *cfg)
You can’t perform that action at this time.
0 commit comments