Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:volume

448         // Integer volume.
449 // Currently integer volume is kept for the legacy integer mixer.
451 t->volume[0] = UNITY_GAIN_INT;
452 t->volume[1] = UNITY_GAIN_INT;
461 // Floating point volume.
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
731 * even if there is a nonzero floating point increment (in that case, the volume
734 * FIXME: 2) Integer volume variables are used for Legacy mixing and should be removed
737 * @param newVolume set volume target in floating point [0.0, 1.0].
738 * @param ramp number of frames to increment over. if ramp is 0, the volume
740 * @param pIntSetVolume pointer to the U4.12 integer target volume, set on return.
741 * @param pIntPrevVolume pointer to the U4.28 integer previous volume, set on return.
743 * @param pSetVolume pointer to the float target volume, set on return.
744 * @param pPrevVolume pointer to the float previous volume, set on return.
746 * @return true if the volume has changed, false if volume is same.
754 /* set the floating point volume variables */
764 /* set the legacy integer volume variables */
769 ALOGE("negative volume %.7g", newVolume);
774 /* TODO: integer/float workaround: ignore floating volume ramp */
885 case VOLUME:
893 target == VOLUME ? "VOLUME" : "RAMP_VOLUME", track.auxLevel);
901 &track.volume[param - VOLUME0], &track.prevVolume[param - VOLUME0],
905 ALOGV("setParameter(%s, VOLUME%d: %04x)",
906 target == VOLUME ? "VOLUME" : "RAMP_VOLUME", param - VOLUME0,
907 track.volume[param - VOLUME0]);
911 LOG_ALWAYS_FATAL("setParameter volume: bad param %d", param);
960 /* Checks to see if the volume ramp has completed and clears the increment
966 * and can be removed once the integer volume is removed.
979 prevVolume[i] = volume[i] << 16;
989 if (((volumeInc[i]>0) && (((prevVolume[i]+volumeInc[i])>>16) >= volume[i])) ||
990 ((volumeInc[i]<0) && (((prevVolume[i]+volumeInc[i])>>16) <= volume[i]))) {
992 prevVolume[i] = volume[i] << 16;
996 //ALOGV("ramp: %d %d %d", volume[i] << 16, prevVolume[i], volumeInc[i]);
1179 // Now that the volume ramp has been done, set optimal state and
1258 // t, vlInc/65536.0f, vl/65536.0f, t->volume[0],
1261 // ramp volume
1295 const int16_t vl = t->volume[0];
1296 const int16_t vr = t->volume[1];
1339 // t, vlInc/65536.0f, vl/65536.0f, t->volume[0],
1383 // t, vlInc/65536.0f, vl/65536.0f, t->volume[0],
1430 // t, vlInc/65536.0f, vl/65536.0f, t->volume[0],
1450 const int16_t vl = t->volume[0];
1451 const int16_t vr = t->volume[1];
1471 // t, vlInc/65536.0f, vl/65536.0f, t->volume[0],
1488 const int16_t vl = t->volume[0];
1489 const int16_t vr = t->volume[1];
1745 const int16_t vl = t.volume[0];
1746 const int16_t vr = t.volume[1];
1761 " %p track %d, channels %d, needs %08x, volume %08x vfl %f vfr %f",
1782 // volume is boosted, so we might need to clamp even though
1925 * USEFLOATVOL (set to true if float volume is used)
1926 * ADJUSTVOL (set to true if volume ramp parameters needs adjustment afterwards)
1956 t->volume, t->auxLevel);
1962 * aux buffer, volume ramp, or resampling.
2045 } else { // constant volume gain