Fixed: Channel "SUB" is now correctly called "LFE". The name "SUB" is still supported for compatibility with existing configurations.

This commit is contained in:
jthedering committed 2019-06-09 19:58:12 +00:00
1 parent a7fc5de925
commit c73cf6b7f2
7 files changed
+26 -10

No files matched your search

+3 -1
View File
@@ -39,7 +39,7 @@ ChannelHelper::ChannelHelper()
channelNameToPosMap[L"L"] = SPEAKER_FRONT_LEFT;
channelNameToPosMap[L"R"] = SPEAKER_FRONT_RIGHT;
channelNameToPosMap[L"C"] = SPEAKER_FRONT_CENTER;
channelNameToPosMap[L"SUB"] = SPEAKER_LOW_FREQUENCY;
channelNameToPosMap[L"LFE"] = SPEAKER_LOW_FREQUENCY;
channelNameToPosMap[L"RL"] = SPEAKER_BACK_LEFT;
channelNameToPosMap[L"RR"] = SPEAKER_BACK_RIGHT;
channelNameToPosMap[L"RC"] = SPEAKER_BACK_CENTER;
@@ -131,6 +131,8 @@ int ChannelHelper::getChannelIndex(std::wstring word, const std::vector<std::wst
pos = find(channelNames.begin(), channelNames.end(), L"SL");
else if (word == L"RR")
pos = find(channelNames.begin(), channelNames.end(), L"SR");
else if (word == L"SUB") // old channel name
pos = find(channelNames.begin(), channelNames.end(), L"LFE");
}
if (pos != channelNames.end())