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