/cts/tests/tests/media/libndkaudio/ |
PeriodicAudioSource.cpp | 21 PeriodicAudioSource::PeriodicAudioSource(int numChannels) 22 : AudioSource(numChannels), targetFreq_(1000.0f) {
|
AudioSource.cpp | 25 AudioSource::AudioSource(int numChannels) 26 : numChannels_(numChannels),
|
AudioSink.h | 27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
|
PeriodicAudioSource.h | 26 PeriodicAudioSource(int numChannels);
|
AudioSource.h | 24 AudioSource(int numChannels); 38 int numChannels) =0;
|
WaveTableOscillator.h | 30 WaveTableOscillator(int numChannels, float* waveTable, int waveTableSize);
|
com_android_ndkaudio_AudioPlayer.cpp | 29 static int numChannels = 2; 46 waveTableSource = new WaveTableOscillator(numChannels, waveTable, waveTableSize); 49 nativePlayer->Open(numChannels, waveTableSource);
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_poly_phase_synthesis.h | 90 int32 numChannels,
|
pvmp3_poly_phase_synthesis.cpp | 40 int32 numChannels, number of channels 123 int32 numChannels, 155 numChannels); 171 ptr_out + (numChannels << 5), 172 numChannels); 174 ptr_out += (numChannels << 6);
|
/external/sonic/ |
wave.h | 12 waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels); 13 waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
|
Sonic.java | 30 private int numChannels; 50 newLength *= numChannels; 69 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) { 70 dest[destPos*numChannels + xSample] = source[sourcePos*numChannels + xSample]; 82 int start = position*numChannels; 83 int stop = start + numSamples*numChannels; 179 int numChannels) 185 inputBuffer = new short[maxRequired*numChannels]; 187 outputBuffer = new short[maxRequired*numChannels]; [all...] |
sonic.c | 34 int numChannels; 210 int numChannels) 217 stream->inputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 223 stream->outputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 229 stream->pitchBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 240 stream->numChannels = numChannels; 254 int numChannels) 261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { 289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); [all...] |
main.c | 27 int numChannels) 29 sonicStream stream = sonicCreateStream(sampleRate, numChannels); 40 samplesRead = readFromWaveFile(inFile, inBuffer, BUFFER_SIZE/numChannels); 48 BUFFER_SIZE/numChannels); 83 int sampleRate, numChannels; 125 inFile = openInputWaveFile(inFileName, &sampleRate, &numChannels); 129 outFile = openOutputWaveFile(outFileName, sampleRate, numChannels); 135 sampleRate, numChannels);
|
sonic.h | 69 /* For all of the following functions, numChannels is multiplied by numSamples 73 allocate the stream. Set numChannels to 1 for mono, and 2 for stereo. */ 74 sonicStream sonicCreateStream(int sampleRate, int numChannels); 133 void sonicSetNumChannels(sonicStream stream, int numChannels); 138 float rate, float volume, int useChordPitch, int sampleRate, int numChannels); 143 float rate, float volume, int useChordPitch, int sampleRate, int numChannels);
|
wave.c | 20 int numChannels; 209 file->numChannels = readShort(file); /* 22 - mono or stereo? 1 or 2? (or 5 or ???) */ 243 int *numChannels) 260 *numChannels = file->numChannels; 268 int numChannels) 280 file->numChannels = numChannels; 335 if(maxSamples*file->numChannels*2 > WAVE_BUF_LEN) { 336 maxSamples = WAVE_BUF_LEN/(file->numChannels*2) [all...] |
/external/webrtc/webrtc/modules/audio_device/android/ |
opensles_common.cc | 24 configuration.numChannels = kNumChannels; 33 if (2 == configuration.numChannels) {
|
/frameworks/wilhelm/src/itf/ |
IMuteSolo.cpp | 33 SLuint8 numChannels = ap->mNumChannels; 34 if (1 >= numChannels) { 37 } else if (numChannels <= chan) { 73 SLuint8 numChannels = ap->mNumChannels; 74 if (1 >= numChannels) { 77 } else if (numChannels <= chan) { 105 SLuint8 numChannels = ap->mNumChannels; 106 if (1 >= numChannels) { 109 } else if (numChannels <= chan) { 145 SLuint8 numChannels = ap->mNumChannels [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioRecordNative.java | 43 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { 44 return open(numChannels, 0, sampleRate, useFloat,numBuffers); 47 public boolean open(int numChannels, int channelMask, int sampleRate, 49 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, 51 mChannelCount = numChannels; 111 public static boolean test(int numChannels, int sampleRate, boolean useFloat, 113 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); 116 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, 118 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) 146 long record, int numChannels, int channelMask [all...] |
AudioTrackNative.java | 46 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { 47 return open(numChannels, 0, sampleRate, useFloat, numBuffers); 50 public boolean open(int numChannels, int channelMask, int sampleRate, 52 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, 54 mChannelCount = numChannels; 118 public static boolean test(int numChannels, int sampleRate, boolean useFloat, 120 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); 123 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, 125 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) 153 long track, int numChannels, int channelMask [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
AudioUtils.java | 80 public static int calcFrameSizeInBytes(int encoding, int numChannels) { 81 return sampleSizeInBytes(encoding) * numChannels;
|
StreamRecorder.java | 57 public static int calcNumBufferBytes(int numChannels, int sampleRate, int encoding) { 61 if (numChannels == 4) { 67 AudioUtils.countToInPositionMask(numChannels), encoding); 73 public static int calcNumBufferFrames(int numChannels, int sampleRate, int encoding) { 74 return calcNumBufferBytes(numChannels, sampleRate, encoding) / 75 AudioUtils.calcFrameSizeInBytes(encoding, numChannels);
|
/frameworks/av/cmds/stagefright/ |
SineSource.cpp | 12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) 15 mNumChannels(numChannels), 18 CHECK(numChannels == 1 || numChannels == 2);
|
/hardware/qcom/msm8996/kernel-headers/linux/ |
msm_audio_ape.h | 34 uint16_t numChannels;
|
/hardware/qcom/msm8996/original-kernel-headers/linux/ |
msm_audio_ape.h | 20 uint16_t numChannels;
|
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
WebRtcAudioManager.java | 243 private static int getMinOutputFrameSize(int sampleRateInHz, int numChannels) { 244 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); 246 if (numChannels == 1) { 248 } else if (numChannels == 2) { 267 private static int getMinInputFrameSize(int sampleRateInHz, int numChannels) { 268 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); 269 assertTrue(numChannels == CHANNELS);
|