Changeset 65765 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 13, 2017 12:53:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r65762 r65765 1446 1446 int coreAudioOutputQueueProcBuffer(PCOREAUDIOSTREAM pCAStream, AudioQueueBufferRef audioBuffer) 1447 1447 { 1448 AssertPtr(pCAStream); 1449 1448 1450 PRTCIRCBUF pCircBuf = pCAStream->pCircBuf; 1449 1451 AssertPtr(pCircBuf); … … 1605 1607 } 1606 1608 1607 rc = RTCircBufCreate(&pCAStream->pCircBuf, 8096 << 1 /*pHstStrmIn->Props.cShift*/); /** @todo FIX THIS !!!*/1609 rc = RTCircBufCreate(&pCAStream->pCircBuf, PDMAUDIOSTREAMCFG_S2B(pCfgReq, 4096)); /** @todo Make this configurable. */ 1608 1610 if (RT_FAILURE(rc)) 1609 1611 return rc; … … 2062 2064 memcpy(pvChunk, (uint8_t *)pvBuf + cbWrittenTotal, cbChunk); 2063 2065 2066 #ifdef DEBUG_DUMP_PCM_DATA 2067 RTFILE fh; 2068 rc = RTFileOpen(&fh, DEBUG_DUMP_PCM_DATA_PATH "ca-playback.pcm", 2069 RTFILE_O_OPEN_CREATE | RTFILE_O_APPEND | RTFILE_O_WRITE | RTFILE_O_DENY_NONE); 2070 if (RT_SUCCESS(rc)) 2071 { 2072 RTFileWrite(fh, pvChunk, cbChunk, NULL); 2073 RTFileClose(fh); 2074 } 2075 else 2076 AssertFailed(); 2077 #endif 2078 2064 2079 /* Release the ring buffer, so the read thread could start reading this data. */ 2065 2080 RTCircBufReleaseWriteBlock(pCAStream->pCircBuf, cbChunk); … … 2323 2338 if (RT_SUCCESS(rc)) 2324 2339 { 2325 pCfgAcq->cSampleBufferHint = _4K; /** @todo FIX THIS !!!*/2340 pCfgAcq->cSampleBufferHint = _4K; /** @todo Make this configurable. */ 2326 2341 } 2327 2342 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.