Changeset 91494 in vbox for trunk/src/VBox
- Timestamp:
- Sep 30, 2021 8:37:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r91492 r91494 405 405 break; 406 406 407 Assert (PDMAudioPropsIsSizeAligned(&pToneParms->Props, (uint32_t)cbRead));407 AssertReturn(PDMAudioPropsIsSizeAligned(&pToneParms->Props, (uint32_t)cbRead), 0); 408 408 409 409 size_t const cbFrame = PDMAudioPropsFrameSize(&pToneParms->Props); 410 AssertReturn(cbFrame, 0); 411 AssertReturn(cbRead % cbFrame == 0, 0); 410 412 411 413 for (size_t i = 0; i < cbRead / cbFrame; i += cbFrame) /** @todo Slow as heck, but works for now. */ … … 421 423 } 422 424 425 AssertReturn(PDMAudioPropsIsSizeAligned(&pToneParms->Props, offFound), 0); 423 426 return offFound; 424 427 }
Note:
See TracChangeset
for help on using the changeset viewer.