Home | History | Annotate | Download | only in audioflinger

Lines Matching full:channels

55     uint16_t numChannels;   // num channels
86 int channels = 1;
101 channels = 2;
173 input_size = channels * sizeof(int16_t) * input_frames;
180 for (size_t j=0 ; j<(size_t)channels ; j++) {
181 in[i*channels + j] = yi / (1+j);
192 Provider(const void* addr, size_t size, int channels) {
194 mNumFrames = size / (channels*sizeof(int16_t));
204 } provider(input_vaddr, input_size, channels);
206 size_t input_frames = input_size / (channels * sizeof(int16_t));
213 AudioResampler* resampler = AudioResampler::create(16, channels,
236 AudioResampler* resampler = AudioResampler::create(16, channels,
247 int16_t* convert = (int16_t*) malloc(out_frames * channels * sizeof(int16_t));
249 for (int j=0 ; j<channels ; j++) {
253 convert[i * channels + j] = int16_t(s);
266 HeaderWav wav(out_frames * channels * sizeof(int16_t), channels, output_freq, 16);
270 write(output_fd, convert, out_frames * channels * sizeof(int16_t));