Lines Matching refs:channels
161 memset(buffer, 0, pSles->bufSizeInFrames * pSles->channels * sizeof(short)); in playerCallback()
171 for (unsigned k = 0; k < pSles->channels; k++) { in playerCallback()
172 ((short *)buffer)[(i+j)*pSles->channels+k] = j < 4 ? 0x7FFF : 0x8000; in playerCallback()
250 pSles->channels = 1; // -c# in slesCreateServer()
278 pSles->bufSizeInBytes = pSles->channels * pSles->bufSizeInFrames * sizeof(short); in slesCreateServer()
300 size_t frameSize = pSles->channels * sizeof(short); in slesCreateServer()
302 pSles->fifoBuffer = new short[FIFO_FRAMES * pSles->channels]; in slesCreateServer()
316 pSles->fifo2Buffer = new short[FIFO2_FRAMES * pSles->channels]; in slesCreateServer()
357 pcm.numChannels = pSles->channels; in slesCreateServer()
361 pcm.channelMask = pSles->channels == 1 ? SL_SPEAKER_FRONT_CENTER : in slesCreateServer()
539 short buffer[pSles->bufSizeInFrames * pSles->channels]; in slesProcessNext()