Searched refs:ramp (Results 1 - 4 of 4) sorted by relevance

/frameworks/av/media/libaaudio/tests/
H A Dtest_linear_ramp.cpp26 LinearRamp ramp; local
32 ramp.setLengthInFrames(8);
33 ramp.setTarget(8.0f);
35 ASSERT_EQ(8, ramp.getLengthInFrames());
37 bool ramping = ramp.nextSegment(4, &levelFrom, &levelTo);
48 ramping = ramp.nextSegment(4, &levelFrom, &levelTo);
59 ramping = ramp.nextSegment(4, &levelFrom, &levelTo);
74 LinearRamp ramp; local
80 ramp.setLengthInFrames(4);
81 ramp
[all...]
/frameworks/av/media/libaudioprocessing/
H A DAudioMixer.cpp484 /* Sets the volume ramp variables for the AudioMixer.
486 * The volume ramp variables are used to transition from the previous
487 * volume to the set volume. ramp controls the duration of the transition.
491 * FIXME: 1) Volume ramp is enabled only if there is a nonzero integer increment
499 * @param ramp number of frames to increment over. if ramp is 0, the volume
500 * should be set immediately. Currently ramp should not exceed 65535 (frames).
509 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp, argument
516 // If the resulting volume is too small to ramp, it is a direct set of the volume.
534 // ramp
1786 volumeMix(TO *out, size_t outFrames, const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t) argument
1834 const bool ramp = t->needsRamp(); local
1885 const bool ramp = t->needsRamp(); local
[all...]
/frameworks/av/include/media/
H A DAudioMixer.h73 RAMP_VOLUME = 0x3002, // ramp to new volume
74 VOLUME = 0x3003, // don't ramp
343 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
351 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t);
/frameworks/av/media/libaudioclient/include/media/
H A DAudioMixer.h73 RAMP_VOLUME = 0x3002, // ramp to new volume
74 VOLUME = 0x3003, // don't ramp
343 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
351 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t);

Completed in 99 milliseconds