Home | History | Annotate | Download | only in audioflinger

Lines Matching defs:ramp

723 /* Sets the volume ramp variables for the AudioMixer.
725 * The volume ramp variables are used to transition from the previous
726 * volume to the set volume. ramp controls the duration of the transition.
730 * FIXME: 1) Volume ramp is enabled only if there is a nonzero integer increment
738 * @param ramp number of frames to increment over. if ramp is 0, the volume
739 * should be set immediately. Currently ramp should not exceed 65535 (frames).
748 static inline bool setVolumeRampVariables(float newVolume, int32_t ramp,
755 if (ramp != 0) {
756 *pVolumeInc = (newVolume - *pSetVolume) / ramp;
774 /* TODO: integer/float workaround: ignore floating volume ramp */
779 if (ramp != 0) {
780 *pIntVolumeInc = ((intVolume - *pIntSetVolume) << 16) / ramp;
960 /* Checks to see if the volume ramp has completed and clears the increment
963 * FIXME: There is code to handle int/float ramp variable switchover should it not
983 //ALOGV("ramp: %f %f %f", mVolume[i], mPrevVolume[i], mVolumeInc[i]);
996 //ALOGV("ramp: %d %d %d", volume[i] << 16, prevVolume[i], volumeInc[i]);
1010 //ALOGV("aux ramp: %d %d %d", auxLevel << 16, prevAuxLevel, auxInc);
1179 // Now that the volume ramp has been done, set optimal state and
1216 // ramp gain - resample to temp buffer and scale/mix in 2nd step
1261 // ramp volume
1330 // ramp gain
1375 // ramp gain
1420 // ramp gain
1463 // ramp gain
1926 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
1934 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t)
1937 if (ramp) {
1948 if (ramp) {
1962 * aux buffer, volume ramp, or resampling.
1963 * TODO: Update the hook selection: this can properly handle aux and ramp.
1981 const bool ramp = t->needsRamp();
2004 out, outFrames, in, aux, ramp, t);
2015 if (ramp) {
2033 const bool ramp = t->needsRamp();
2034 if (ramp || aux != NULL) {
2035 // if ramp: resample with unity gain to temp buffer and scale/mix in 2nd step.
2043 out, outFrameCount, temp, aux, ramp, t);