Home | History | Annotate | Download | only in examples

Lines Matching defs:channels

40 static SLuint32 channels = 1;       // -c#
182 memset(buffer, 0, bufSizeInFrames * channels * sizeof(short));
192 for (unsigned k = 0; k < channels; k++) {
193 ((short *)buffer)[(i+j)*channels+k] = j < 4 ? 0x7FFF : 0x8000;
288 channels = atoi(&arg[2]);
289 if (channels < 1 || channels > 2) {
291 (unsigned) channels);
292 channels = 2;
341 bufSizeInBytes = channels * bufSizeInFrames * sizeof(short);
363 size_t frameSize = channels * sizeof(short);
365 short *fifoBuffer = new short[FIFO_FRAMES * channels];
374 info.channels = channels;
379 fifo2Buffer = new short[FIFO2_FRAMES * channels];
418 pcm.numChannels = channels;
422 pcm.channelMask = channels == 1 ? SL_SPEAKER_FRONT_CENTER :
552 short buffer[bufSizeInFrames * channels];