Changeset 62980 in vbox
- Timestamp:
- Aug 4, 2016 12:01:05 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/testcase/tstAudioMixBuffer.cpp
r61609 r62980 76 76 int16_t samples16[2] = { 0xAA, 0xBB }; 77 77 int32_t samples32[2] = { 0xCC, 0xDD }; 78 int64_t samples64[2] = { 0xEE, 0xFF };78 /* int64_t samples64[2] = { 0xEE, 0xFF }; - unused */ 79 79 80 80 RTTESTI_CHECK_RC_OK(AudioMixBufWriteAt(&mb, 0, &samples8, sizeof(samples8), &written)); … … 111 111 RTTESTI_CHECK(written == 1); 112 112 RTTESTI_CHECK(AudioMixBufFree(&mb) == 0); 113 RTTESTI_CHECK(AudioMixBufFreeBytes(&mb) == AUDIOMIXBUF_S2B(&mb, 0 ));113 RTTESTI_CHECK(AudioMixBufFreeBytes(&mb) == AUDIOMIXBUF_S2B(&mb, 0U)); 114 114 RTTESTI_CHECK(AudioMixBufUsed(&mb) == cBufSize); 115 115 … … 206 206 uint32_t read , written, mixed; 207 207 208 uint32_t cChild1Free = cBufSize;209 uint32_t cChild1Mixed = 0;210 uint32_t cSamplesParent1 = cSamples;211 208 uint32_t cSamplesChild1 = cSamples; 212 213 uint32_t cChild2Free = cBufSize;214 uint32_t cChild2Mixed = 0;215 uint32_t cSamplesParent2 = cSamples;216 209 uint32_t cSamplesChild2 = cSamples; 217 210 … … 326 319 uint32_t read, written, mixed, temp; 327 320 328 uint32_t cChildFree = cBufSize;329 uint32_t cChildMixed = 0;330 321 uint32_t cSamplesChild = 16; 331 322 uint32_t cSamplesParent = cSamplesChild * 2 - 2; … … 429 420 uint32_t read, written, mixed, temp; 430 421 431 uint32_t cChildFree = cBufSize;432 uint32_t cChildMixed = 0;433 422 uint32_t cSamplesChild = 16; 434 423 uint32_t cSamplesParent = cSamplesChild * 2 - 2; … … 519 508 uint32_t read, written, mixed; 520 509 521 uint32_t cChildFree = cBufSize;522 uint32_t cChildMixed = 0;523 510 uint32_t cSamplesChild = 8; 524 511 uint32_t cSamplesParent = cSamplesChild; -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r62511 r62980 234 234 235 235 236 /** 237 * @callback_method_impl{FNPDMTHREADDRV} 238 */ 236 239 static DECLCALLBACK(int) drvNATRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 237 240 { … … 251 254 252 255 256 /** 257 * @callback_method_impl{FNPDMTHREADWAKEUPDRV} 258 */ 253 259 static DECLCALLBACK(int) drvNATRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 254 260 { 261 RT_NOREF(pThread); 255 262 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 256 263 int rc; … … 261 268 } 262 269 270 271 /** 272 * @callback_method_impl{FNPDMTHREADDRV} 273 */ 263 274 static DECLCALLBACK(int) drvNATUrgRecv(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 264 275 { … … 280 291 } 281 292 293 294 /** 295 * @callback_method_impl{FNPDMTHREADWAKEUPDRV} 296 */ 282 297 static DECLCALLBACK(int) drvNATUrgRecvWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 283 298 { 299 RT_NOREF(pThread); 284 300 PDRVNAT pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT); 285 301 int rc = RTSemEventSignal(pThis->EventUrgRecv); … … 288 304 return VINF_SUCCESS; 289 305 } 306 290 307 291 308 static DECLCALLBACK(void) drvNATUrgRecvWorker(PDRVNAT pThis, uint8_t *pu8Buf, int cb, struct mbuf *m) … … 423 440 PCPDMNETWORKGSO pGso = (PCPDMNETWORKGSO)pSgBuf->pvUser; 424 441 uint32_t const cSegs = PDMNetGsoCalcSegmentCount(pGso, pSgBuf->cbUsed); Assert(cSegs > 1); 425 for ( size_t iSeg = 0; iSeg < cSegs; iSeg++)442 for (uint32_t iSeg = 0; iSeg < cSegs; iSeg++) 426 443 { 427 444 size_t cbSeg; … … 459 476 static DECLCALLBACK(int) drvNATNetworkUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread) 460 477 { 478 RT_NOREF(fOnWorkerThread); 461 479 PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp); 462 480 int rc = RTCritSectTryEnter(&pThis->XmitLock); … … 572 590 static DECLCALLBACK(int) drvNATNetworkUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread) 573 591 { 592 RT_NOREF(fOnWorkerThread); 574 593 PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkUp); 575 594 Assert((pSgBuf->fFlags & PDMSCATTERGATHER_FLAGS_OWNER_MASK) == PDMSCATTERGATHER_FLAGS_OWNER_1); … … 613 632 static void drvNATNotifyNATThread(PDRVNAT pThis, const char *pszWho) 614 633 { 634 RT_NOREF(pszWho); 615 635 int rc; 616 636 #ifndef RT_OS_WINDOWS … … 630 650 static DECLCALLBACK(void) drvNATNetworkUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous) 631 651 { 652 RT_NOREF(pInterface, fPromiscuous) 632 653 LogFlow(("drvNATNetworkUp_SetPromiscuousMode: fPromiscuous=%d\n", fPromiscuous)); 633 654 /* nothing to do */
Note:
See TracChangeset
for help on using the changeset viewer.