Changeset 65762 in vbox
- Timestamp:
- Feb 13, 2017 12:26:29 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113477
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r65694 r65762 2422 2422 PCOREAUDIOSTREAM pCAStream = (PCOREAUDIOSTREAM)pStream; 2423 2423 2424 return (ASMAtomicReadU32(&pCAStream->enmStatus) == COREAUDIOSTATUS_INIT) 2425 ? UINT32_MAX : 0; 2424 if (ASMAtomicReadU32(&pCAStream->enmStatus) != COREAUDIOSTATUS_INIT) 2425 return 0; 2426 2427 AssertPtr(pCAStream->pCfg); 2428 AssertPtr(pCAStream->pCircBuf); 2429 2430 switch (pCAStream->pCfg->enmDir) 2431 { 2432 case PDMAUDIODIR_IN: 2433 return (uint32_t)RTCircBufUsed(pCAStream->pCircBuf); 2434 2435 case PDMAUDIODIR_OUT: 2436 default: 2437 AssertFailed(); 2438 break; 2439 } 2440 2441 return 0; 2426 2442 } 2427 2443 … … 2437 2453 PCOREAUDIOSTREAM pCAStream = (PCOREAUDIOSTREAM)pStream; 2438 2454 2439 return (ASMAtomicReadU32(&pCAStream->enmStatus) == COREAUDIOSTATUS_INIT) 2440 ? UINT32_MAX : 0; 2455 if (ASMAtomicReadU32(&pCAStream->enmStatus) != COREAUDIOSTATUS_INIT) 2456 return 0; 2457 2458 AssertPtr(pCAStream->pCfg); 2459 AssertPtr(pCAStream->pCircBuf); 2460 2461 switch (pCAStream->pCfg->enmDir) 2462 { 2463 case PDMAUDIODIR_OUT: 2464 return (uint32_t)RTCircBufFree(pCAStream->pCircBuf); 2465 2466 case PDMAUDIODIR_IN: 2467 default: 2468 AssertFailed(); 2469 break; 2470 } 2471 2472 return 0; 2441 2473 } 2442 2474
Note:
See TracChangeset
for help on using the changeset viewer.