Changeset 55324 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Apr 17, 2015 12:10:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r55074 r55324 1470 1470 uint32_t lsbindex (uint32_t u) 1471 1471 { 1472 return popcount ((u &-u)-1); /** @todo r=andy Un/signed mismatch? */1472 return popcount ((u & -(int32_t)u) - 1); 1473 1473 } 1474 1474 #endif … … 1661 1661 } 1662 1662 1663 static int sb16WriteAudio(PSB16STATE pThis, int nchan, int dma_pos, 1664 int dma_len, int len) 1665 { 1666 uint8_t tmpbuf[_4K]; /** @todo Have a buffer on the heap. */ 1667 1668 int cbToWrite = len; 1669 int cbWrittenTotal = 0; 1663 static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos, 1664 uint32_t dma_len, int len) 1665 { 1666 uint8_t tmpbuf[_4K]; /** @todo Have a buffer on the heap. */ 1667 uint32_t cbToWrite = len; 1668 uint32_t cbWrittenTotal = 0; 1670 1669 1671 1670 while (cbToWrite) … … 1676 1675 #else 1677 1676 uint32_t cbWrittenMin = UINT32_MAX; 1678 size_t cbToRead;1677 uint32_t cbToRead; 1679 1678 uint32_t cbRead; 1680 1679 #endif
Note:
See TracChangeset
for help on using the changeset viewer.