Searched refs:samplesPerFrame (Results 1 - 16 of 16) sorted by relevance

/frameworks/av/media/libaaudio/src/utility/
H A DAAudioUtilities.h60 * @param samplesPerFrame AKA number of channels
67 int32_t samplesPerFrame,
102 * @param samplesPerFrame AKA number of channels
109 int32_t samplesPerFrame,
122 * @param samplesPerFrame
129 int32_t samplesPerFrame,
142 * @param samplesPerFrame
149 int32_t samplesPerFrame,
H A DAAudioUtilities.cpp117 int32_t samplesPerFrame,
124 for (int sampleIndex = 0; sampleIndex < samplesPerFrame; sampleIndex++) {
148 int32_t samplesPerFrame,
154 for (int sampleIndex = 0; sampleIndex < samplesPerFrame; sampleIndex++) {
165 int32_t samplesPerFrame,
171 for (int sampleIndex = 0; sampleIndex < samplesPerFrame; sampleIndex++) {
188 int32_t samplesPerFrame,
194 for (int sampleIndex = 0; sampleIndex < samplesPerFrame; sampleIndex++) {
114 AAudioConvert_floatToPcm16(const float *source, int16_t *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
145 AAudioConvert_pcm16ToFloat(const int16_t *source, float *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
162 AAudio_linearRamp(const float *source, float *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
185 AAudio_linearRamp(const int16_t *source, int16_t *destination, int32_t numFrames, int32_t samplesPerFrame, float amplitude1, float amplitude2) argument
/frameworks/av/media/libaaudio/examples/utils/
H A DAAudioSimplePlayer.h143 int32_t samplesPerFrame = AAudioStream_getChannelCount(mStream); local
145 float zeros[numFrames * samplesPerFrame];
214 int32_t samplesPerFrame = AAudioStream_getChannelCount(stream); local
221 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames);
223 if (samplesPerFrame > 1) {
224 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames);
231 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames);
233 if (samplesPerFrame > 1) {
234 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames);
H A DAAudioSimpleRecorder.h143 int32_t samplesPerFrame = AAudioStream_getSamplesPerFrame(mStream); local
145 float zeros[numFrames * samplesPerFrame];
217 int32_t samplesPerFrame = AAudioStream_getSamplesPerFrame(stream); local
225 sample = audioBuffer[frameIndex * samplesPerFrame] * (1.0/32768);
237 sample = audioBuffer[frameIndex * samplesPerFrame];
/frameworks/av/services/oboeservice/
H A DAAudioMixer.cpp32 void AAudioMixer::allocate(int32_t samplesPerFrame, int32_t framesPerBurst) { argument
33 mSamplesPerFrame = samplesPerFrame;
35 int32_t samplesPerBuffer = samplesPerFrame * framesPerBurst;
H A DAAudioMixer.h30 void allocate(int32_t samplesPerFrame, int32_t framesPerBurst);
/frameworks/av/media/libaaudio/src/binding/
H A DAAudioStreamConfiguration.h57 void setSamplesPerFrame(int32_t samplesPerFrame) { argument
58 mSamplesPerFrame = samplesPerFrame;
/frameworks/av/media/libaaudio/src/core/
H A DAudioStreamBuilder.h44 AudioStreamBuilder* setSamplesPerFrame(int samplesPerFrame) { argument
45 mSamplesPerFrame = samplesPerFrame;
H A DAudioStream.h253 void setSamplesPerFrame(int32_t samplesPerFrame) { argument
254 mSamplesPerFrame = samplesPerFrame;
H A DAAudioAudio.cpp154 int32_t samplesPerFrame)
157 streamBuilder->setSamplesPerFrame(samplesPerFrame);
153 AAudioStreamBuilder_setSamplesPerFrame(AAudioStreamBuilder* builder, int32_t samplesPerFrame) argument
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamRecord.cpp59 int32_t samplesPerFrame = (getSamplesPerFrame() == AAUDIO_UNSPECIFIED) local
61 audio_channel_mask_t channelMask = audio_channel_in_mask_from_count(samplesPerFrame);
H A DAudioStreamTrack.cpp63 int32_t samplesPerFrame = (getSamplesPerFrame() == AAUDIO_UNSPECIFIED) local
65 audio_channel_mask_t channelMask = audio_channel_out_mask_from_count(samplesPerFrame);
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp421 LVM_INT16 samplesPerFrame = 1; local
428 samplesPerFrame = 2;
443 fwrite(pIn, frameCount*sizeof(LVM_INT16)*samplesPerFrame, 1, pContext->PcmInPtr);
455 for(int i=0; i<frameCount*samplesPerFrame; i++){
470 memset(pContext->InFrames32,0,frameCount * sizeof(LVM_INT32) * samplesPerFrame);
471 ALOGV("\tZeroing %d samples per frame at the end of call", samplesPerFrame);
/frameworks/av/media/libaaudio/include/aaudio/
H A DAAudio.h242 int32_t samplesPerFrame);
732 * The samplesPerFrame is also known as channelCount.
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4lib_int.h287 Int samplesPerFrame[30]; /* number of samples per frame, 30->30fps */ member in struct:tagMultiPass
H A Drate_control.cpp315 /* for pMP->samplesPerFrame */
316 pMP->samplesPerFrame[pMP->framePos] = 0;
745 for (i = 1; i < pMP->samplesPerFrame[j]; i++)

Completed in 269 milliseconds