| 1092 | } |
| 1093 | |
| 1094 | static DWORD SoundConvertControlType(LPTSTR aBuf) |
| 1095 | { |
| 1096 | // v1.0.37.06: The following was added to allow unnamed control types (if any) to be accessed via number: |
| 1097 | if (IsNumeric(aBuf, false, false, true)) // Seems best to allowing floating point here, since .000 on the end might happen sometimes. |
| 1098 | return ATOU(aBuf); |
| 1099 | // The following are the types that seem to correspond to actual sound attributes. Some of the |
| 1100 | // values are not included here, such as MIXERCONTROL_CONTROLTYPE_FADER, which seems to be a type |
| 1101 | // of sound control rather than a quality of the sound itself. For performance, put the most |
| 1102 | // often used ones up top. |
| 1103 | if (!_tcsicmp(aBuf, _T("Vol")) |
| 1104 | || !_tcsicmp(aBuf, _T("Volume"))) return MIXERCONTROL_CONTROLTYPE_VOLUME; |
| 1105 | if (!_tcsicmp(aBuf, _T("OnOff"))) return MIXERCONTROL_CONTROLTYPE_ONOFF; |
| 1106 | if (!_tcsicmp(aBuf, _T("Mute"))) return MIXERCONTROL_CONTROLTYPE_MUTE; |
| 1107 | if (!_tcsicmp(aBuf, _T("Mono"))) return MIXERCONTROL_CONTROLTYPE_MONO; |
| 1108 | if (!_tcsicmp(aBuf, _T("Loudness"))) return MIXERCONTROL_CONTROLTYPE_LOUDNESS; |
| 1109 | if (!_tcsicmp(aBuf, _T("StereoEnh"))) return MIXERCONTROL_CONTROLTYPE_STEREOENH; |
| 1110 | if (!_tcsicmp(aBuf, _T("BassBoost"))) return MIXERCONTROL_CONTROLTYPE_BASS_BOOST; |
| 1111 | if (!_tcsicmp(aBuf, _T("Pan"))) return MIXERCONTROL_CONTROLTYPE_PAN; |
| 1112 | if (!_tcsicmp(aBuf, _T("QSoundPan"))) return MIXERCONTROL_CONTROLTYPE_QSOUNDPAN; |
| 1113 | if (!_tcsicmp(aBuf, _T("Bass"))) return MIXERCONTROL_CONTROLTYPE_BASS; |
| 1114 | if (!_tcsicmp(aBuf, _T("Treble"))) return MIXERCONTROL_CONTROLTYPE_TREBLE; |
| 1115 | if (!_tcsicmp(aBuf, _T("Equalizer"))) return MIXERCONTROL_CONTROLTYPE_EQUALIZER; |
| 1116 | #define MIXERCONTROL_CONTROLTYPE_INVALID 0xFFFFFFFF // 0 might be a valid type, so use something definitely undefined. |
| 1117 | return MIXERCONTROL_CONTROLTYPE_INVALID; |
| 1118 | } |
| 1119 | |
| 1120 | static TitleMatchModes ConvertTitleMatchMode(LPTSTR aBuf) |
| 1121 | { |
nothing calls this directly
no test coverage detected