mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user