Home | History | Annotate | Download | only in sandbox

Lines Matching refs:format

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