Lines Matching refs:csToRead
613 uint32_t csToRead = 0;
634 csToRead = csAvail - csReads;
635 cbToRead = csToRead << caVoice->hw.info.shift; /* samples -> bytes */
636 CA_EXT_DEBUG_LOG(("CoreAudio: [Output] Try reading %RU32 samples (%RU32 bytes)\n", csToRead, cbToRead));
640 csToRead = cbToRead >> caVoice->hw.info.shift; /* bytes -> samples */
641 CA_EXT_DEBUG_LOG(("CoreAudio: [Output] There are %RU32 samples (%RU32 bytes) available\n", csToRead, cbToRead));
650 csReads += csToRead;
1896 uint32_t csToRead = 0;
1922 csToRead = RT_MIN(csAvail - csReads, (uint32_t)(hw->samples - hw->wpos));
1923 cbToRead = csToRead << hw->info.shift;
1924 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] Try reading %RU32 samples (%RU32 bytes)\n", csToRead, cbToRead));
1928 csToRead = cbToRead >> hw->info.shift;
1929 CA_EXT_DEBUG_LOG(("CoreAudio: [Input] There are %RU32 samples (%RU32 bytes) available\n", csToRead, cbToRead));
1935 hw->conv(psDst, pcSrc, csToRead, &nominal_volume);
1938 hw->wpos = (hw->wpos + csToRead) % hw->samples;
1940 csReads += csToRead;