Changeset 73680 in vbox for trunk/src/VBox
- Timestamp:
- Aug 15, 2018 6:39:12 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r73529 r73680 2449 2449 PCOREAUDIOSTREAM pCAStream = (PCOREAUDIOSTREAM)pStream; 2450 2450 2451 if (ASMAtomicReadU32(&pCAStream->enmStatus) != COREAUDIOSTATUS_INIT) 2452 return 0; 2453 2454 AssertPtr(pCAStream->pCfg); 2455 AssertPtr(pCAStream->pCircBuf); 2456 2457 switch (pCAStream->pCfg->enmDir) 2458 { 2459 case PDMAUDIODIR_OUT: 2460 return (uint32_t)RTCircBufFree(pCAStream->pCircBuf); 2461 2462 case PDMAUDIODIR_IN: 2463 default: 2464 AssertFailed(); 2465 break; 2466 } 2467 2468 return 0; 2451 uint32_t cbWritable = 0; 2452 2453 if (ASMAtomicReadU32(&pCAStream->enmStatus) == COREAUDIOSTATUS_INIT) 2454 { 2455 AssertPtr(pCAStream->pCfg); 2456 AssertPtr(pCAStream->pCircBuf); 2457 2458 switch (pCAStream->pCfg->enmDir) 2459 { 2460 case PDMAUDIODIR_OUT: 2461 cbWritable = (uint32_t)RTCircBufFree(pCAStream->pCircBuf); 2462 break; 2463 2464 default: 2465 break; 2466 } 2467 } 2468 2469 LogFlowFunc(("cbWritable=%RU32\n", cbWritable)); 2470 return cbWritable; 2469 2471 } 2470 2472
Note:
See TracChangeset
for help on using the changeset viewer.