Lines Matching refs:format
95 PCM *format; in main() local
98 for (format = formats; format->numChannels; ++format) { in main()
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, in main()
101 format->milliHz / 1000, format->bitsPerSample); in main()
109 format_pcm.numChannels = format->numChannels; in main()
110 format_pcm.samplesPerSec = format->milliHz; in main()
111 format_pcm.bitsPerSample = format->bitsPerSample; in main()
112 format_pcm.containerSize = format->bitsPerSample; in main()
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main()
151 format->milliHz; in main()
154 if (2 == format->numChannels) { in main()
155 if (8 == format->bitsPerSample) { in main()
159 assert(16 == format->bitsPerSample); in main()
166 assert(1 == format->numChannels); in main()
169 if (8 == format->bitsPerSample) { in main()
172 assert(16 == format->bitsPerSample); in main()