Home
last modified time | relevance | path

Searched refs:numChans (Results 1 – 8 of 8) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveScopeView.java55 public void setPCM16Buff(short[] smpl16Buff, int numChans, int numFrames) { in setPCM16Buff() argument
59 mNumChannels = numChans; in setPCM16Buff()
67 public void setPCMFloatBuff(float[] smplFloatBuff, int numChans, int numFrames) { in setPCMFloatBuff() argument
71 mNumChannels = numChans; in setPCMFloatBuff()
116 private void drawChannel16(Canvas cvs, short[] samples, int numFrames, int numChans, in drawChannel16() argument
118 float yScale = getHeight() / (float) (Short.MAX_VALUE * 2 * numChans); in drawChannel16()
131 smpl += numChans; in drawChannel16()
145 private void drawChannelFloat(Canvas cvs, float[] samples, int numFrames, int numChans, in drawChannelFloat() argument
147 float yScale = getHeight() / (float) (2 * numChans); in drawChannelFloat()
160 smpl += numChans; in drawChannelFloat()
DStreamRecorder.java117 private boolean open_internal(int numChans, int sampleRate) { in open_internal() argument
118 Log.i(TAG, "StreamRecorder.open_internal(chans:" + numChans + ", rate:" + sampleRate); in open_internal()
120 mNumChannels = numChans; in open_internal()
123 int chanMask = AudioUtils.countToIndexMask(numChans); in open_internal()
144 public boolean open(int numChans, int sampleRate, int numBurstFrames) { in open() argument
145 boolean sucess = open_internal(numChans, sampleRate); in open()
DWaveTableFloatFiller.java65 public int fill(float[] buffer, int numFrames, int numChans) { in fill() argument
80 for (int chanIndex = 0; chanIndex < numChans; chanIndex++) { in fill()
DStreamPlayer.java106 public boolean open(int numChans, int sampleRate, int numBurstFrames, AudioFiller filler) { in open() argument
110 mNumChans = numChans; in open()
115 calcNumBufferFrames(sampleRate, numChans, AudioFormat.ENCODING_PCM_FLOAT); in open()
DAudioFiller.java36 public int fill(float[] buffer, int numFrames, int numChans); in fill() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DUSBDeviceInfoHelper.java46 int numChans = calcMaxChannelCount(deviceInfo); in getPlayChanMask() local
47 switch (numChans) { in getPlayChanMask()
59 Log.e(TAG, "getPlayChanMask() Unsupported number of channels: " + numChans); in getPlayChanMask()
71 int numChans = calcMaxChannelCount(deviceInfo); in getRecordChanMask() local
72 switch (numChans) { in getRecordChanMask()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralRecordActivity.java56 int numChans = mRecorder.getNumChannels(); in connectWaveView() local
57 int numFrames = smplFloatBuff.length / numChans; in connectWaveView()
58 mWaveView.setPCMFloatBuff(smplFloatBuff, numChans, numFrames); in connectWaveView()
76 int numChans = USBDeviceInfoHelper.calcMaxChannelCount(mInputDevInfo); in startRecording() local
78 if (mRecorder.open(numChans, mSystemSampleRate, mSystemBufferSize)) { in startRecording()
DUSBAudioPeripheralPlayerActivity.java59 int numChans = USBDeviceInfoHelper.calcMaxChannelCount(mOutputDevInfo); in startPlay() local
60 mPlayer.open(numChans, mSystemSampleRate, mSystemBufferSize, mFiller); in startPlay()