Lines Matching refs:channels
107 memset(buffer, 0, framesToErase * pSles->channels * sizeof(short)); in recorderCallback()
174 memset(buffer, 0, pSles->bufSizeInFrames * pSles->channels * sizeof(short)); in playerCallback()
184 for (unsigned k = 0; k < pSles->channels; k++) { in playerCallback()
185 ((short *)buffer)[(i+j)*pSles->channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback()
264 pSles->channels = 1; // -c# in slesCreateServer()
298 pSles->bufSizeInBytes = pSles->channels * pSles->bufSizeInFrames * sizeof(short); in slesCreateServer()
320 size_t frameSize = pSles->channels * sizeof(short); in slesCreateServer()
322 pSles->fifoBuffer = new short[FIFO_FRAMES * pSles->channels]; in slesCreateServer()
336 pSles->fifo2Buffer = new short[FIFO2_FRAMES * pSles->channels]; in slesCreateServer()
375 pcm.numChannels = pSles->channels; in slesCreateServer()
379 pcm.channelMask = pSles->channels == 1 ? SL_SPEAKER_FRONT_CENTER : in slesCreateServer()
557 short buffer[pSles->bufSizeInFrames * pSles->channels]; in slesProcessNext()