Lines Matching refs:csToWrite
964 uint32_t csToWrite = 0;
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 = 0;
1379 csToWrite = csAvail - csWritten;
1380 cbToWrite = csToWrite << caVoice->hw.info.shift;
1381 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] Try writing %RU32 samples (%RU32 bytes)\n", csToWrite, cbToWrite));
1385 csToWrite = cbToWrite >> caVoice->hw.info.shift;
1386 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] There is space for %RU32 samples (%RU32 bytes) available\n", csToWrite, cbToWrite));
1412 csToWrite = cbToWrite >> caVoice->hw.info.shift;
1415 csWritten += csToWrite;
1456 csToWrite = csAvail - csWritten;
1457 cbToWrite = csToWrite << caVoice->hw.info.shift;
1458 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] Try writing %RU32 samples (%RU32 bytes)\n", csToWrite, cbToWrite));
1462 csToWrite = cbToWrite >> caVoice->hw.info.shift;
1463 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] There is space for %RU32 samples (%RU32 bytes) available\n", csToWrite, cbToWrite));
1471 csWritten += csToWrite;