mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
List player options before listing devices
This commit is contained in:
parent
ed9a8c6462
commit
3b50f7a1ad
2 changed files with 10 additions and 10 deletions
|
@ -332,15 +332,6 @@ int main(int argc, char** argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
settings.player.pcm_device = getPcmDevice(settings.player.player_name, settings.player.parameter, pcm_device);
|
||||
#if defined(HAS_ALSA)
|
||||
if (settings.player.pcm_device.idx == -1)
|
||||
{
|
||||
cout << "PCM device \"" << pcm_device << "\" not found\n";
|
||||
// exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAS_SOXR
|
||||
if (sample_format->is_set())
|
||||
{
|
||||
|
@ -388,6 +379,15 @@ int main(int argc, char** argv)
|
|||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
settings.player.pcm_device = getPcmDevice(settings.player.player_name, settings.player.parameter, pcm_device);
|
||||
#if defined(HAS_ALSA)
|
||||
if (settings.player.pcm_device.idx == -1)
|
||||
{
|
||||
cout << "PCM device \"" << pcm_device << "\" not found\n";
|
||||
// exit(EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
|
||||
string mode = utils::string::split_left(mixer_mode->value(), ':', settings.player.mixer.parameter);
|
||||
if (mode == "software")
|
||||
settings.player.mixer.mode = ClientSettings::Mixer::Mode::software;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue