Changeset 99559 in vbox for trunk/include/VBox
- Timestamp:
- Apr 28, 2023 2:30:50 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioinline.h
r98103 r99559 407 407 DECLINLINE(void) PDMAudioPropsInit(PPDMAUDIOPCMPROPS pProps, uint8_t cbSample, bool fSigned, uint8_t cChannels, uint32_t uHz) 408 408 { 409 Assert(cChannels <= PDMAUDIO_MAX_CHANNELS); 410 409 411 pProps->cbFrame = cbSample * cChannels; 410 412 pProps->cbSampleX = cbSample; … … 429 431 bool fLittleEndian, bool fRaw) 430 432 { 433 Assert(cChannels <= PDMAUDIO_MAX_CHANNELS); 431 434 Assert(!fRaw || cbSample == sizeof(int64_t)); 432 435 pProps->cbFrame = cbSample * cChannels; … … 503 506 DECL_FORCE_INLINE(uint8_t) PDMAudioPropsChannels(PCPDMAUDIOPCMPROPS pProps) 504 507 { 508 AssertReturn(pProps->cChannelsX <= PDMAUDIO_MAX_CHANNELS, PDMAUDIO_MAX_CHANNELS); 505 509 return pProps->cChannelsX; 506 510 }
Note:
See TracChangeset
for help on using the changeset viewer.