Home | History | Annotate | Download | only in libnbaio

Lines Matching refs:format

25 size_t Format_frameSize(const NBAIO_Format& format)
27 return format.mFrameSize;
32 unsigned Format_sampleRate(const NBAIO_Format& format)
34 if (!Format_isValid(format)) {
37 return format.mSampleRate;
40 unsigned Format_channelCount(const NBAIO_Format& format)
42 if (!Format_isValid(format)) {
45 return format.mChannelCount;
49 audio_format_t format)
51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) {
57 ret.mFormat = format;
58 ret.mFrameSize = audio_is_linear_pcm(format) ?
59 channelCount * audio_bytes_per_sample(format) : sizeof(uint8_t);
158 bool Format_isValid(const NBAIO_Format& format)
160 return format.mSampleRate != 0 && format.mChannelCount != 0 &&
161 format.mFormat != AUDIO_FORMAT_INVALID && format.mFrameSize != 0;