Lines Matching refs:channels
40 static SLuint32 channels = 1; // -c# variable
186 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short)); in playerCallback()
196 for (unsigned k = 0; k < channels; k++) { in playerCallback()
197 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback()
292 channels = atoi(&arg[2]); in main()
293 if (channels < 1 || channels > 2) { in main()
295 (unsigned) channels); in main()
296 channels = 2; in main()
345 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short); in main()
367 size_t frameSize = channels * sizeof(short); in main()
369 short *fifoBuffer = new short[FIFO_FRAMES * channels]; in main()
380 info.channels = channels; in main()
385 fifo2Buffer = new short[FIFO2_FRAMES * channels]; in main()
426 pcm.numChannels = channels; in main()
430 pcm.channelMask = channels == 1 ? SL_SPEAKER_FRONT_CENTER : in main()
560 short buffer[bufSizeInFrames * channels]; in main()