Searched refs:csToWrite (Results 1 - 4 of 4) sorted by relevance

/vbox/src/VBox/Devices/Audio/
H A Dfilteraudio.c326 uint32_t csToWrite = 0; local
358 csToWrite = RT_MIN(csAvail - csWritten, (uint32_t)(pVoice->phw->samples - pVoice->phw->rpos));
359 cbToWrite = csToWrite << pVoice->phw->info.shift; /* samples -> bytes */
360 CA_EXT_DEBUG_LOG(("FilterAudio: [Output] Try writing %RU32 samples (%RU32 bytes)\n", csToWrite, cbToWrite));
366 csToWrite = cbToWrite >> pVoice->phw->info.shift;
367 CA_EXT_DEBUG_LOG(("FilterAudio: [Output] There is space for %RU32 samples (%RU32 bytes) available\n", csToWrite, cbToWrite));
375 pVoice->phw->clip((uint8_t*)pcDst, psSrc, csToWrite);
380 pVoice->phw->rpos = (pVoice->phw->rpos + csToWrite) % pVoice->phw->samples;
383 csWritten += csToWrite;
526 uint32_t csToWrite local
[all...]
H A Dcoreaudio.c964 uint32_t csToWrite = 0; local
995 csToWrite = RT_MIN(csAvail - csWritten, (uint32_t)(hw->samples - hw->rpos));
996 cbToWrite = csToWrite << hw->info.shift; /* samples -> bytes */
997 CA_EXT_DEBUG_LOG(("CoreAudio: [Output] Try writing %RU32 samples (%RU32 bytes)\n", csToWrite, cbToWrite));
1001 csToWrite = cbToWrite >> hw->info.shift;
1002 CA_EXT_DEBUG_LOG(("CoreAudio: [Output] There is space for %RU32 samples (%RU32 bytes) available\n", csToWrite, cbToWrite));
1008 hw->clip((uint8_t*)pcDst, psSrc, csToWrite);
1011 hw->rpos = (hw->rpos + csToWrite) % hw->samples;
1013 csWritten += csToWrite;
1326 uint32_t csToWrite local
[all...]
H A Dsolaudio.c409 int csLive, csDecr, csSamples, csToWrite, csAvail; local
430 csToWrite = audio_MIN(csSamples, hw->samples - hw->rpos);
431 cbToWrite = csToWrite << hw->info.shift;
435 hw->clip(pu8Dst, psSrc, csToWrite);
441 hw->rpos = (hw->rpos + csToWrite) % hw->samples;
442 csSamples -= csToWrite;
/vbox/src/VBox/Main/src-client/
H A DDrvAudioVideoRec.cpp349 size_t csToWrite = csAvail - csWritten; local
350 size_t cbToWrite = csToWrite * sizeof(PDMAUDIOSAMPLE);
357 csToWrite = cbToWrite / sizeof(PDMAUDIOSAMPLE);
360 if (csToWrite)
363 csWritten += csToWrite;
369 if (RT_UNLIKELY(csToWrite == 0))

Completed in 387 milliseconds