Changeset 88442 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 9, 2021 5:20:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioAlsa.cpp
r88432 r88442 324 324 * @param pCfgReq Requested configuration to set. 325 325 * @param pCfgObt Obtained configuration on success. Might differ from 326 * 326 * requested configuration. 327 327 */ 328 328 static int alsaStreamSetHwParams(snd_pcm_t *phPCM, PALSAAUDIOSTREAMCFG pCfgReq, PALSAAUDIOSTREAMCFG pCfgObt) … … 408 408 pCfgObt->fmt = pCfgReq->fmt; 409 409 410 LogRel2(("ALSA: HW params: %u Hz, % ul frames period, %ulframes buffer, %u channel(s), fmt=%d, access=%d\n",410 LogRel2(("ALSA: HW params: %u Hz, %lu frames period, %lu frames buffer, %u channel(s), fmt=%d, access=%d\n", 411 411 pCfgObt->freq, pCfgObt->period_size, pCfgObt->buffer_size, pCfgObt->nchannels, pCfgObt->fmt, pCfgObt->access)); 412 412 return 0; … … 747 747 cbToWrite = cbBuf; 748 748 749 /* 750 * Now we copy the stuff into our scratch buffer for some 751 * totally unexplained reason. 752 */ 749 /* Now we copy the stuff into our scratch buffer for some totally unexplained reason. */ 753 750 memcpy(pStreamALSA->pvBuf, pvBuf, cbToWrite); 754 751 … … 965 962 pCfgAcq->Backend.cFramesPeriod = obt.period_size; 966 963 pCfgAcq->Backend.cFramesBufferSize = obt.buffer_size; 967 /* No pre-buffering. */964 pCfgAcq->Backend.cFramesPreBuffering = 0; /* No pre-buffering. */ 968 965 969 966 pStreamALSA->cbBuf = pCfgAcq->Backend.cFramesBufferSize * PDMAudioPropsBytesPerFrame(&pCfgAcq->Props);
Note:
See TracChangeset
for help on using the changeset viewer.