/cts/apps/CtsVerifier/jni/audioquality/ |
GenerateSinusoid.cpp | 49 int numSamples = int(0.5 + (sampleRate * duration)); 51 short* wave = new short[numSamples]; 53 for (int i = 0; i < numSamples; ++i) { 60 if (i > (numSamples - numRamp - 1)) { 61 float gain = (0.5 - (0.5 * cos((0.5 + (numSamples - i - 1)) 69 *numOutput = numSamples;
|
Wrapper.cpp | 70 int numSamples = 0; 73 &numSamples, &wave); 76 if (!numSamples) { 79 ja = env->NewShortArray(numSamples); 80 env->SetShortArrayRegion(ja, 0, numSamples, wave); 98 int numSamples = env->GetArrayLength(jpcm); 99 short *pcm = new short[numSamples]; 100 env->GetShortArrayRegion(jpcm, 0, numSamples, pcm); 102 measureRms(pcm, numSamples, sampleRate, onsetThresh, ret, ret + 1, 126 int numSamples = env->GetArrayLength(jpcm) [all...] |
/external/sonivox/arm-fm-22k/lib_src/ |
eas_mixer.c | 46 EAS_I32 MaximizerProcess (EAS_VOID_PTR pInstData, EAS_I32 *pSrc, EAS_I32 *pDst, EAS_I32 numSamples); 107 void EAS_MixEnginePrep (S_EAS_DATA *pEASData, EAS_I32 numSamples) 112 EAS_HWMemSet(pEASData->pMixBuffer, 0, numSamples * (EAS_I32) sizeof(long) * 2); 114 EAS_HWMemSet(pEASData->pMixBuffer, 0, (EAS_I32) numSamples * (EAS_I32) sizeof(long)); 135 void EAS_MixEnginePost (S_EAS_DATA *pEASData, EAS_I32 numSamples) 146 temp = MaximizerProcess(pEASData->effectsModules[EAS_MODULE_MAXIMIZER].effectData, pEASData->pMixBuffer, pEASData->pMixBuffer, numSamples); 173 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) numSamples * 2)); 175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples); 185 numSamples); 195 numSamples); [all...] |
/external/sonivox/arm-hybrid-22k/lib_src/ |
ARM-E_filter_gnu.s | 41 numSamples .req r3
68 LDR numSamples, [pWTFrame, #m_numSamples]
105 SUBS numSamples, numSamples, #2 @ unroll loop once
|
ARM-E_interpolate_loop_gnu.s | 41 numSamples .req r2
69 LDR numSamples, [pWTFrame, #m_numSamples]
119 SUBS numSamples, numSamples, #1
|
ARM-E_interpolate_noloop_gnu.s | 42 numSamples .req r3
67 LDR numSamples, [pWTFrame, #m_numSamples]
111 SUBS numSamples, numSamples, #1
|
eas_mixer.c | 46 EAS_I32 MaximizerProcess (EAS_VOID_PTR pInstData, EAS_I32 *pSrc, EAS_I32 *pDst, EAS_I32 numSamples); 107 void EAS_MixEnginePrep (S_EAS_DATA *pEASData, EAS_I32 numSamples) 112 EAS_HWMemSet(pEASData->pMixBuffer, 0, numSamples * (EAS_I32) sizeof(long) * 2); 114 EAS_HWMemSet(pEASData->pMixBuffer, 0, (EAS_I32) numSamples * (EAS_I32) sizeof(long)); 135 void EAS_MixEnginePost (S_EAS_DATA *pEASData, EAS_I32 numSamples) 146 temp = MaximizerProcess(pEASData->effectsModules[EAS_MODULE_MAXIMIZER].effectData, pEASData->pMixBuffer, pEASData->pMixBuffer, numSamples); 173 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) numSamples * 2)); 175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples); 185 numSamples); 195 numSamples); [all...] |
ARM-E_voice_gain_gnu.s | 50 numSamples .req r9
74 LDR numSamples, [pWTFrame, #m_numSamples]
124 SUBS numSamples, numSamples, #1
156 SUBS numSamples, numSamples, #1
|
eas_wtengine.c | 83 EAS_I32 numSamples; 90 numSamples = pWTIntFrame->numSamples; 106 while (numSamples--) { 181 EAS_I32 numSamples; 184 numSamples = pWTIntFrame->numSamples; 204 while (numSamples--) { 274 EAS_I32 numSamples; 277 numSamples = pWTIntFrame->numSamples [all...] |
eas_wtengine.h | 67 EAS_I32 numSamples;
|
eas_wtsynth.c | 53 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples); 450 EAS_I32 numSamples; 460 numSamples = (EAS_I32) (pWTVoice->loopEnd - pWTVoice->phaseAccum); 464 numSamples = (EAS_I32) ((numSamples << NUM_PHASE_FRAC_BITS) - pWTVoice->phaseFrac); 465 pWTIntFrame->numSamples = 1 + (numSamples / pWTIntFrame->frame.phaseIncrement); 499 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples) 511 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples); 552 intFrame.numSamples = numSamples [all...] |
/external/sonivox/arm-wt-22k/lib_src/ |
ARM-E_filter_gnu.s | 41 numSamples .req r3
68 LDR numSamples, [pWTFrame, #m_numSamples]
105 SUBS numSamples, numSamples, #2 @ unroll loop once
|
ARM-E_interpolate_loop_gnu.s | 41 numSamples .req r2
69 LDR numSamples, [pWTFrame, #m_numSamples]
119 SUBS numSamples, numSamples, #1
|
ARM-E_interpolate_noloop_gnu.s | 42 numSamples .req r3
67 LDR numSamples, [pWTFrame, #m_numSamples]
111 SUBS numSamples, numSamples, #1
|
eas_mixer.c | 46 EAS_I32 MaximizerProcess (EAS_VOID_PTR pInstData, EAS_I32 *pSrc, EAS_I32 *pDst, EAS_I32 numSamples); 107 void EAS_MixEnginePrep (S_EAS_DATA *pEASData, EAS_I32 numSamples) 112 EAS_HWMemSet(pEASData->pMixBuffer, 0, numSamples * (EAS_I32) sizeof(long) * 2); 114 EAS_HWMemSet(pEASData->pMixBuffer, 0, (EAS_I32) numSamples * (EAS_I32) sizeof(long)); 135 void EAS_MixEnginePost (S_EAS_DATA *pEASData, EAS_I32 numSamples) 146 temp = MaximizerProcess(pEASData->effectsModules[EAS_MODULE_MAXIMIZER].effectData, pEASData->pMixBuffer, pEASData->pMixBuffer, numSamples); 173 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) numSamples * 2)); 175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples); 185 numSamples); 195 numSamples); [all...] |
ARM-E_voice_gain_gnu.s | 50 numSamples .req r9
74 LDR numSamples, [pWTFrame, #m_numSamples]
124 SUBS numSamples, numSamples, #1
156 SUBS numSamples, numSamples, #1
|
eas_wtengine.c | 83 EAS_I32 numSamples; 90 numSamples = pWTIntFrame->numSamples; 106 while (numSamples--) { 181 EAS_I32 numSamples; 184 numSamples = pWTIntFrame->numSamples; 204 while (numSamples--) { 274 EAS_I32 numSamples; 277 numSamples = pWTIntFrame->numSamples [all...] |
eas_wtengine.h | 67 EAS_I32 numSamples;
|
eas_wtsynth.c | 53 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples); 450 EAS_I32 numSamples; 460 numSamples = (EAS_I32) (pWTVoice->loopEnd - pWTVoice->phaseAccum); 464 numSamples = (EAS_I32) ((numSamples << NUM_PHASE_FRAC_BITS) - pWTVoice->phaseFrac); 466 pWTIntFrame->numSamples = 1 + (numSamples / pWTIntFrame->frame.phaseIncrement); 468 pWTIntFrame->numSamples = numSamples; 503 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 voiceNum, EAS_I32 *pMixBuffer, EAS_I32 numSamples) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
WaveformImage.java | 55 final int numSamples = waveBuffer.size() / 2; 58 if (end == 0 || endIndex >= numSamples) { 59 endIndex = numSamples;
|
RecognitionView.java | 308 final int numSamples = waveBuffer.remaining(); 311 endIndex = numSamples; 313 endIndex = Math.min(endPosition, numSamples);
|
/frameworks/base/media/libstagefright/ |
WAVExtractor.cpp | 389 size_t numSamples = buffer->range_length() / 3; 390 for (size_t i = 0; i < numSamples; ++i) { 399 buffer->set_range(buffer->range_offset(), 2 * numSamples);
|
/external/svox/pico/lib/ |
picosig.c | 747 picoos_uint32 numSamples; [all...] |
/frameworks/base/libs/ui/ |
Input.cpp | 521 size_t numSamples = mSamplePointerCoords.size(); 522 for (size_t i = 0; i < numSamples; i++) { 567 size_t numSamples = mSamplePointerCoords.size(); 568 for (size_t i = 0; i < numSamples; i++) { [all...] |
/frameworks/base/media/libeffects/testlibs/ |
EffectReverb.c | 262 size_t numSamples = outBuffer->frameCount; 263 while (numSamples) { 265 if (numSamples > (uint32_t) pReverb->m_nUpdatePeriodInSamples) { 268 processedSamples = numSamples; 283 numSamples -= processedSamples; [all...] |