Commit 5d18559c authored by borine's avatar borine

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.
parent 62c9751a
...@@ -134,7 +134,7 @@ Allows :program:`MPD` on Linux to play audio directly from a soundcard using the ...@@ -134,7 +134,7 @@ Allows :program:`MPD` on Linux to play audio directly from a soundcard using the
.. code-block:: none .. code-block:: none
mpc add alsa:// plays audio from device hw:0,0 mpc add alsa:// plays audio from device default
.. code-block:: none .. code-block:: none
......
...@@ -52,8 +52,8 @@ static constexpr Domain alsa_input_domain("alsa"); ...@@ -52,8 +52,8 @@ static constexpr Domain alsa_input_domain("alsa");
static constexpr auto ALSA_URI_PREFIX = "alsa://"; static constexpr auto ALSA_URI_PREFIX = "alsa://";
static constexpr auto BUILTIN_DEFAULT_DEVICE = "hw:0,0"; static constexpr auto BUILTIN_DEFAULT_DEVICE = "default";
static constexpr auto BUILTIN_DEFAULT_FORMAT = "44100:16:2"; static constexpr auto BUILTIN_DEFAULT_FORMAT = "48000:16:2";
static constexpr auto DEFAULT_BUFFER_TIME = std::chrono::milliseconds(1000); static constexpr auto DEFAULT_BUFFER_TIME = std::chrono::milliseconds(1000);
static constexpr auto DEFAULT_RESUME_TIME = DEFAULT_BUFFER_TIME / 2; static constexpr auto DEFAULT_RESUME_TIME = DEFAULT_BUFFER_TIME / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment