Lines Matching refs:format
25 size_t Format_frameSize(NBAIO_Format format)
27 return Format_channelCount(format) * sizeof(short);
30 size_t Format_frameBitShift(NBAIO_Format format)
33 return Format_channelCount(format);
54 unsigned Format_sampleRate(NBAIO_Format format)
56 if (format == Format_Invalid) {
59 switch (format & Format_SR_Mask) {
81 unsigned Format_channelCount(NBAIO_Format format)
83 if (format == Format_Invalid) {
86 switch (format & Format_C_Mask) {
98 NBAIO_Format format;
101 format = Format_SR_8000;
104 format = Format_SR_11025;
107 format = Format_SR_16000;
110 format = Format_SR_22050;
113 format = Format_SR_24000;
116 format = Format_SR_32000;
119 format = Format_SR_44100;
122 format = Format_SR_48000;
129 format |= Format_C_1;
132 format |= Format_C_2;
137 return format;