Changeset 88057 in vbox for trunk/include
- Timestamp:
- Mar 9, 2021 3:11:22 PM (4 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r88056 r88057 281 281 /** 32-bit, signed. */ 282 282 PDMAUDIOFMT_S32, 283 /** End of valid values. */ 284 PDMAUDIOFMT_END, 283 285 /** Hack to blow the type up to 32-bit. */ 284 286 PDMAUDIOFMT_32BIT_HACK = 0x7fffffff … … 300 302 /** Duplex handling. */ 301 303 PDMAUDIODIR_DUPLEX, 304 /** End of valid values. */ 305 PDMAUDIODIR_END, 302 306 /** Hack to blow the type up to 32-bit. */ 303 307 PDMAUDIODIR_32BIT_HACK = 0x7fffffff … … 395 399 } PDMAUDIOHOSTDEV; 396 400 AssertCompileSizeAlignment(PDMAUDIOHOSTDEV, 16); 397 /** Pointer to audio device info (enum result). */401 /** Pointer to audio device info (enumeration result). */ 398 402 typedef PDMAUDIOHOSTDEV *PPDMAUDIOHOSTDEV; 399 /** Pointer to a const audio device info (enum result). */403 /** Pointer to a const audio device info (enumeration result). */ 400 404 typedef PDMAUDIOHOSTDEV const *PCPDMAUDIOHOSTDEV; 401 405 … … 513 517 /** Rear channel. */ 514 518 PDMAUDIOPLAYBACKDST_REAR, 519 /** End of valid values. */ 520 PDMAUDIOPLAYBACKDST_END, 515 521 /** Hack to blow the type up to 32-bit. */ 516 522 PDMAUDIOPLAYBACKDST_32BIT_HACK = 0x7fffffff … … 539 545 /** Phone-In. */ 540 546 PDMAUDIORECSRC_PHONE, 547 /** End of valid values. */ 548 PDMAUDIORECSRC_END, 541 549 /** Hack to blow the type up to 32-bit. */ 542 550 PDMAUDIORECSRC_32BIT_HACK = 0x7fffffff … … 579 587 * directly. Don't use this if you don't have to. */ 580 588 PDMAUDIOSTREAMLAYOUT_RAW, 589 /** End of valid values. */ 590 PDMAUDIOSTREAMLAYOUT_END, 581 591 /** Hack to blow the type up to 32-bit. */ 582 592 PDMAUDIOSTREAMLAYOUT_32BIT_HACK = 0x7fffffff … … 644 654 /** Right height channel. */ 645 655 PDMAUDIOSTREAMCHANNELID_RIGHT_HEIGHT, 656 /** End of valid values. */ 657 PDMAUDIOSTREAMCHANNELID_END, 646 658 /** Hack to blow the type up to 32-bit. */ 647 659 PDMAUDIOSTREAMCHANNELID_32BIT_HACK = 0x7fffffff … … 812 824 /** Microphone-In. */ 813 825 PDMAUDIOMIXERCTL_MIC_IN, 826 /** End of valid values. */ 827 PDMAUDIOMIXERCTL_END, 814 828 /** Hack to blow the type up to 32-bit. */ 815 829 PDMAUDIOMIXERCTL_32BIT_HACK = 0x7fffffff … … 846 860 * No supported by all backends. */ 847 861 PDMAUDIOSTREAMCMD_DROP, 862 /** End of valid values. */ 863 PDMAUDIOSTREAMCMD_END, 848 864 /** Hack to blow the type up to 32-bit. */ 849 865 PDMAUDIOSTREAMCMD_32BIT_HACK = 0x7fffffff … … 1056 1072 /** 1057 1073 * Audio file types. 1074 * @todo r=bird: This does not really belong here. 1058 1075 */ 1059 1076 typedef enum PDMAUDIOFILETYPE -
trunk/include/VBox/vmm/pdmaudioinline.h
r88052 r88057 77 77 78 78 /* no default */ 79 case PDMAUDIODIR_END: 79 80 case PDMAUDIODIR_INVALID: 80 81 case PDMAUDIODIR_32BIT_HACK: … … 102 103 case PDMAUDIOMIXERCTL_MIC_IN: return "Microphone-In"; 103 104 /* no default */ 105 case PDMAUDIOMIXERCTL_END: 104 106 case PDMAUDIOMIXERCTL_INVALID: 105 107 case PDMAUDIOMIXERCTL_32BIT_HACK: … … 125 127 /* no default */ 126 128 case PDMAUDIOPLAYBACKDST_INVALID: 129 case PDMAUDIOPLAYBACKDST_END: 127 130 case PDMAUDIOPLAYBACKDST_32BIT_HACK: 128 131 break; … … 149 152 case PDMAUDIORECSRC_PHONE: return "Phone"; 150 153 /* no default */ 154 case PDMAUDIORECSRC_END: 151 155 case PDMAUDIORECSRC_32BIT_HACK: 152 156 break; … … 177 181 /* no default */ 178 182 case PDMAUDIOFMT_INVALID: 183 case PDMAUDIOFMT_END: 179 184 case PDMAUDIOFMT_32BIT_HACK: 180 185 break; … … 207 212 /* no default */ 208 213 case PDMAUDIOFMT_INVALID: 214 case PDMAUDIOFMT_END: 209 215 case PDMAUDIOFMT_32BIT_HACK: 210 216 break; … … 232 238 /* no default */ 233 239 case PDMAUDIOFMT_INVALID: 240 case PDMAUDIOFMT_END: 234 241 case PDMAUDIOFMT_32BIT_HACK: 235 242 break; … … 296 303 { 297 304 AssertPtrReturn(pCfg, false); 298 AssertMsgReturn(pCfg->enmDir >= PDMAUDIODIR_UNKNOWN && pCfg->enmDir < = PDMAUDIODIR_DUPLEX,305 AssertMsgReturn(pCfg->enmDir >= PDMAUDIODIR_UNKNOWN && pCfg->enmDir < PDMAUDIODIR_END, 299 306 ("%d\n", pCfg->enmDir), false); 300 AssertMsgReturn(pCfg->enmLayout >= PDMAUDIOSTREAMLAYOUT_UNKNOWN && pCfg->enmLayout < = PDMAUDIOSTREAMLAYOUT_RAW,307 AssertMsgReturn(pCfg->enmLayout >= PDMAUDIOSTREAMLAYOUT_UNKNOWN && pCfg->enmLayout < PDMAUDIOSTREAMLAYOUT_END, 301 308 ("%d\n", pCfg->enmLayout), false); 302 309 return PDMAudioPropsAreValid(&pCfg->Props); … … 380 387 case PDMAUDIOSTREAMCMD_DRAIN: return "Drain"; 381 388 case PDMAUDIOSTREAMCMD_DROP: return "Drop"; 389 case PDMAUDIOSTREAMCMD_END: 382 390 case PDMAUDIOSTREAMCMD_32BIT_HACK: 383 391 break;
Note:
See TracChangeset
for help on using the changeset viewer.