Lines Matching refs:samples
39 /** Converts samples to bytes. */
40 #define AUDIOMIXBUF_S2B(pBuf, samples) ((samples) << (pBuf)->cShift)
41 /** Converts samples to bytes, respecting the conversion ratio to
43 #define AUDIOMIXBUF_S2B_RATIO(pBuf, samples) ((((int64_t) samples << 32) / (pBuf)->iFreqRatio) << (pBuf)->cShift)
44 /** Converts bytes to samples, *not* taking the conversion ratio
47 /** Converts number of samples according to the buffer's ratio. */
48 #define AUDIOMIXBUF_S2S_RATIO(pBuf, samples) (((int64_t) samples << 32) / (pBuf)->iFreqRatio)