/frameworks/av/media/libaaudio/src/utility/ |
H A D | LinearRamp.h | 37 void setLengthInFrames(int32_t frames) { argument 38 mLengthInFrames = frames; 77 * @param frames number of frames in the segment 82 bool nextSegment(int32_t frames, float *levelFrom, float *levelTo);
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioTrack.cpp | 55 static inline nsecs_t framesToNanoseconds(ssize_t frames, uint32_t sampleRate, float speed) argument 57 return ((double)frames * 1000000000) / ((double)sampleRate * speed); 623 // force refresh of remaining frames by processAudioBuffer() as last 686 "stop() called with %u frames delivered", mReleased.value()); 1912 uint32_t loopPeriod = 0; // time in frames for next EVENT_LOOP_END or EVENT_BUFFER_END 2179 // There could be enough non-contiguous frames available to satisfy the remaining request 2243 // take the frames that will be lost by track recreation into account in saved position 2297 // This is the sole place to read server consumed frames 2306 // unless the server has more than 2^31 frames in its buffer, 2409 // apply server offset (frames flushe 2481 const int64_t frames = local [all...] |
/frameworks/av/media/libaudiohal/ |
H A D | StreamHalLocal.cpp | 221 status_t StreamOutHalLocal::getPresentationPosition(uint64_t *frames, struct timespec *timestamp) { argument 223 return mStream->get_presentation_position(mStream, frames, timestamp); 281 status_t StreamInHalLocal::getCapturePosition(int64_t *frames, int64_t *time) { argument 283 return mStream->get_capture_position(mStream, frames, time);
|
/frameworks/av/media/libaudioprocessing/ |
H A D | BufferProviders.cpp | 276 void DownmixerBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument 279 mInBuffer->setFrameCount(frames); 280 mInBuffer->update(mInFrameSize * frames); 281 mOutBuffer->setFrameCount(frames); 286 mOutBuffer->update(mOutFrameSize * frames); 291 mOutBuffer->commit(mOutFrameSize * frames); 353 void RemixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument 356 src, mInputChannels, mIdxAry, mSampleSize, frames); 374 void ReformatBufferProvider::copyFrames(void *dst, const void *src, size_t frames) argument 376 memcpy_by_audio_format(dst, mOutputFormat, src, mInputFormat, frames * mChannelCoun [all...] |
H A D | RecordBufferConverter.cpp | 78 AudioBufferProvider *provider, size_t frames) 90 for (size_t i = frames; i > 0; ) { 94 frames -= i; // cannot fill request. 109 if (mBufFrameSize != 0 && mBufFrames < frames) { 111 mBufFrames = frames; 115 memset(mBuf, 0, frames * mBufFrameSize); 116 frames = mResampler->resample((int32_t*)mBuf, frames, provider); 118 convertResampler(dst, mBuf, frames); 120 return frames; 77 convert(void *dst, AudioBufferProvider *provider, size_t frames) argument 219 convertNoResampler( void *dst, const void *src, size_t frames) argument 259 convertResampler( void *dst, void *src, size_t frames) argument [all...] |
/frameworks/av/media/libaudioprocessing/tests/ |
H A D | test-mixer.cpp | 48 fprintf(stderr, " -P # frames provided per call to resample() in CSV format\n"); 55 uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) { 61 info.frames = 0; 65 printf("saving file:%s channels:%u samplerate:%u frames:%zu\n", 66 filename, info.channels, info.samplerate, frames); 73 (void) sf_writef_float(sf, (float*)buffer, frames); 75 (void) sf_writef_short(sf, (short*)buffer, frames); 210 // calculate the number of output frames 312 outputFrames = i; // reset output frames to the data actually produced. 54 writeFile(const char *filename, const void *buffer, uint32_t sampleRate, uint32_t channels, size_t frames, bool isBufferFloat) argument
|
H A D | test-resampler.cpp | 60 fprintf(stderr," -O # frames output per call to resample() in CSV format\n"); 61 fprintf(stderr," -P # frames provided per call to resample() in CSV format\n"); 218 input_size = info.frames * info.channels * sizeof(short); 220 (void) sf_readf_short(sf, (short *) input_vaddr, info.frames); 262 const size_t mNumFrames; // total frames 265 size_t mUnrel; // number of frames not yet released 266 const Vector<int> mPvalues; // number of frames provided per call 269 Provider(const void* addr, size_t frames, size_t frameSize, const Vector<int>& Pvalues) argument 271 mNumFrames(frames), 291 printf("getNextBuffer() requested %zu frames ou [all...] |
H A D | test_utils.h | 101 TestProvider(void* addr, size_t frames, size_t frameSize, argument 104 mNumFrames(frames), 138 ALOGV("getNextBuffer() requested %zu frames out of %zu frames available" 139 " and returned %zu frames", 154 ALOGE("releaseBuffer() released %zu frames but only %zu available " 160 ALOGV("releaseBuffer() released %zu frames out of %zu frames available " 182 size_t mNumFrames; // total frames 185 size_t mUnrel; // number of frames no 193 createSine(void *vbuffer, size_t frames, size_t channels, double sampleRate, double freq) argument 217 createChirp(void *vbuffer, size_t frames, size_t channels, double sampleRate, double minfreq, double maxfreq) argument 290 createBufferByFrames(size_t channels, uint32_t sampleRate, size_t frames) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OggExtractor.cpp | 617 uint32_t frames = getNumSamplesInPacket(*out); local 618 mCurGranulePosition += frames;
|
H A D | XINGSeeker.cpp | 139 int32_t frames = U32_AT(buffer); local 144 if (frames) { 145 seeker->mDurationUs = (int64_t)frames * samples_per_frame * 1000000LL / sampling_rate;
|