input/plugins/AlsaInputPlugin: change default device to default and default format to 48000:16:2

using the device "default" brings this plugin into line with the AlsaOutputPlugin; and a sample rate of 48kHz is more widely used as a native default for modern hardware than 44.1kHz

Also fixes an inconsistency between the docs and code.
This commit is contained in:
borine 2019-03-06 19:37:19 +00:00
parent 62c9751ac8
commit 5d18559c1c
2 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ Allows :program:`MPD` on Linux to play audio directly from a soundcard using the
.. code-block:: none
mpc add alsa:// plays audio from device hw:0,0
mpc add alsa:// plays audio from device default
.. code-block:: none

View File

@ -52,8 +52,8 @@ static constexpr Domain alsa_input_domain("alsa");
static constexpr auto ALSA_URI_PREFIX = "alsa://";
static constexpr auto BUILTIN_DEFAULT_DEVICE = "hw:0,0";
static constexpr auto BUILTIN_DEFAULT_FORMAT = "44100:16:2";
static constexpr auto BUILTIN_DEFAULT_DEVICE = "default";
static constexpr auto BUILTIN_DEFAULT_FORMAT = "48000:16:2";
static constexpr auto DEFAULT_BUFFER_TIME = std::chrono::milliseconds(1000);
static constexpr auto DEFAULT_RESUME_TIME = DEFAULT_BUFFER_TIME / 2;