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:
parent
62c9751ac8
commit
5d18559c1c
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue