Changeset 89413 in vbox for trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
- Timestamp:
- May 31, 2021 8:16:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89403 r89413 1604 1604 if (RT_SUCCESS(rc)) 1605 1605 { 1606 uint64_t const nsStarted = RTTimeNanoTS();1606 uint64_t const nsStarted = RTTimeNanoTS(); 1607 1607 1608 1608 /* 1609 1609 * Transfer data as quickly as we're allowed. 1610 1610 */ 1611 uint8_t abSamples[16384]; 1612 uint32_t const cbSamplesAligned = PDMAudioPropsFloorBytesToFrame(&pStream->Props, sizeof(abSamples)); 1611 1613 for (;;) 1612 1614 { 1613 1615 /* Read a chunk from the wave file. */ 1614 uint8_t abSamples[16384];1615 1616 size_t cbSamples = 0; 1616 rc = AudioTestWaveFileRead(&WaveFile, abSamples, sizeof(abSamples), &cbSamples);1617 rc = AudioTestWaveFileRead(&WaveFile, abSamples, cbSamplesAligned, &cbSamples); 1617 1618 if (RT_SUCCESS(rc) && cbSamples > 0) 1618 1619 {
Note:
See TracChangeset
for help on using the changeset viewer.