@@ -1139,7 +1139,8 @@ auto UpdateDeviceParams(gsl::not_null<al::Device*> device,
11391139 else
11401140 opttype = iter->type ;
11411141 }
1142- if (auto chanopt = device->configValue <std::string>({}, " channels" ))
1142+ if (auto const chanopt = device->configValue <std::string>({}, " channels" ); chanopt
1143+ && al::case_compare (*chanopt, " surround3d71" sv) != 0 )
11431144 {
11441145 struct ChannelMap {
11451146 std::string_view name;
@@ -1153,14 +1154,14 @@ auto UpdateDeviceParams(gsl::not_null<al::Device*> device,
11531154 ChannelMap{" surround51" sv, DevFmtX51, 0 },
11541155 ChannelMap{" surround61" sv, DevFmtX61, 0 },
11551156 ChannelMap{" surround71" sv, DevFmtX71, 0 },
1156- ChannelMap{" surround714" sv, DevFmtX714, 0 },
1157+ ChannelMap{" 3d71" sv, DevFmtX3D71, 0 },
1158+ ChannelMap{" surround714" sv, DevFmtX714, 0 },
11571159 ChannelMap{" surround7144" sv, DevFmtX7144, 0 },
1158- ChannelMap{" surround3d71" sv, DevFmtX3D71, 0 },
1159- ChannelMap{" surround51rear" sv, DevFmtX51, 0 },
11601160 ChannelMap{" ambi1" sv, DevFmtAmbi3D, 1 },
11611161 ChannelMap{" ambi2" sv, DevFmtAmbi3D, 2 },
11621162 ChannelMap{" ambi3" sv, DevFmtAmbi3D, 3 },
11631163 ChannelMap{" ambi4" sv, DevFmtAmbi3D, 4 },
1164+ ChannelMap{" surround51rear" sv, DevFmtX51, 0 },
11641165 };
11651166
11661167 const auto iter = std::ranges::find_if (chanlist,
@@ -1174,6 +1175,12 @@ auto UpdateDeviceParams(gsl::not_null<al::Device*> device,
11741175 aorder = iter->order ;
11751176 }
11761177 }
1178+ else if (chanopt)
1179+ {
1180+ ERR (" Channels setting {} is deprecated;" , *chanopt);
1181+ ERR (" If you mean 7.1 surround sound, please use \" surround71\" " );
1182+ ERR (" Otherwise, if 3D7.1 specifically is set up correctly, please use \" 3d71\" " );
1183+ }
11771184 if (auto ambiopt = device->configValue <std::string>({}, " ambi-format" sv))
11781185 {
11791186 if (al::case_compare (*ambiopt, " fuma" sv) == 0 )
0 commit comments