audio: quote devices in --audio-device=help

The output is a bit confusing. Quoting the device name probably helps a
little bit; also add minimal explanations to the manpage.
This commit is contained in:
wm4
2014-10-19 16:36:38 +02:00
parent 7e66a35969
commit c854ce934e
2 changed files with 4 additions and 2 deletions

View File

@@ -769,7 +769,9 @@ Audio
``alsa``, followed by ``/``, followed by the audio output specific device
name.
You can list audio devices with ``--audio-device=help``.
You can list audio devices with ``--audio-device=help``. This outputs the
device name in quotes, followed by a description. The device name is what
you have to pass to the ``--audio-device`` option.
The default value for this option is ``auto``, which tries every audio
output in preference order with the default device.

View File

@@ -439,7 +439,7 @@ void ao_print_devices(struct mpv_global *global, struct mp_log *log)
mp_info(log, "List of detected audio devices:\n");
for (int n = 0; n < list->num_devices; n++) {
struct ao_device_desc *desc = &list->devices[n];
mp_info(log, " %s (%s)\n", desc->name, desc->desc);
mp_info(log, " '%s' (%s)\n", desc->name, desc->desc);
}
talloc_free(list);
}