Changeset 89423 in vbox for trunk/include
- Timestamp:
- Jun 1, 2021 10:14:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioinline.h
r89416 r89423 136 136 } 137 137 AssertMsgFailedReturn(("Unknown enmPath=%d\n", enmPath), "bad"); 138 } 139 140 /** 141 * Gets the name of a channel. 142 * 143 * @returns Pointer to read-only name, "bad" if invalid input. 144 * @param enmChannelId The channel ID to name. 145 */ 146 DECLINLINE(const char *) PDMAudioChannelIdGetName(PDMAUDIOCHANNELID enmChannelId) 147 { 148 switch (enmChannelId) 149 { 150 case PDMAUDIOCHANNELID_INVALID: return "invalid"; 151 case PDMAUDIOCHANNELID_UNUSED_ZERO: return "unused-zero"; 152 case PDMAUDIOCHANNELID_UNUSED_SILENCE: return "unused-silence"; 153 case PDMAUDIOCHANNELID_UNKNOWN: return "unknown"; 154 155 case PDMAUDIOCHANNELID_FRONT_LEFT: return "FL"; 156 case PDMAUDIOCHANNELID_FRONT_RIGHT: return "FR"; 157 case PDMAUDIOCHANNELID_FRONT_CENTER: return "FC"; 158 case PDMAUDIOCHANNELID_LFE: return "LFE"; 159 case PDMAUDIOCHANNELID_REAR_LEFT: return "BL"; 160 case PDMAUDIOCHANNELID_REAR_RIGHT: return "BR"; 161 case PDMAUDIOCHANNELID_FRONT_LEFT_OF_CENTER: return "FLC"; 162 case PDMAUDIOCHANNELID_FRONT_RIGHT_OF_CENTER: return "FRC"; 163 case PDMAUDIOCHANNELID_REAR_CENTER: return "BC"; 164 case PDMAUDIOCHANNELID_SIDE_LEFT: return "SL"; 165 case PDMAUDIOCHANNELID_SIDE_RIGHT: return "SR"; 166 case PDMAUDIOCHANNELID_TOP_CENTER: return "TC"; 167 case PDMAUDIOCHANNELID_FRONT_LEFT_HEIGHT: return "TFL"; 168 case PDMAUDIOCHANNELID_FRONT_CENTER_HEIGHT: return "TFC"; 169 case PDMAUDIOCHANNELID_FRONT_RIGHT_HEIGHT: return "TFR"; 170 case PDMAUDIOCHANNELID_REAR_LEFT_HEIGHT: return "TBL"; 171 case PDMAUDIOCHANNELID_REAR_CENTER_HEIGHT: return "TBC"; 172 case PDMAUDIOCHANNELID_REAR_RIGHT_HEIGHT: return "TBR"; 173 174 /* no default */ 175 case PDMAUDIOCHANNELID_END: 176 case PDMAUDIOCHANNELID_32BIT_HACK: 177 break; 178 } 179 AssertMsgFailedReturn(("Unknown enmChannelId=%d\n", enmChannelId), "bad"); 138 180 } 139 181
Note:
See TracChangeset
for help on using the changeset viewer.