Lines Matching refs:volume

34  *     adjust the volume of the stream and specify that the stream should be looped.</li>
39 * clients to adjust the volume of the stream and specify that the stream should be looped but
92 /** Schedules an adjustment of the playback volume 50ms in the future. */
94 LogUtils.v(TAG, "Adjusting volume.");
96 // Ensure we never have more than one volume adjustment queued.
99 // Queue the next volume adjustment.
196 * @return the scalar volume value that produces a linear increase in volume (in decibels)
206 // Convert the target gain (in decibels) into the corresponding volume scalar.
207 final float volume = (float) Math.pow(10f, gain/20f);
209 LogUtils.v(TAG, "Ringtone crescendo %,.2f%% complete (scalar: %f, volume: %f dB)",
210 fractionComplete * 100, volume, gain);
212 return volume;
258 * @return {@code true} iff a {@link #adjustVolume volume adjustment} should be scheduled
264 * @return {@code true} iff another volume adjustment should be scheduled
280 /** The duration over which to increase the volume. */
319 // low volume to not disrupt the call.
362 // do not play alarms if stream volume is 0 (typically because ringer mode is silent).
405 * Adjusts the volume of the ringtone being played to create a crescendo effect.
411 // If media player is absent or not playing, ignore volume adjustment.
418 // If the crescendo is complete set the volume to the maximum; we're done.
427 // The current volume of the crescendo is the percentage of the crescendo completed.
428 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration);
429 mMediaPlayer.setVolume(volume, volume);
430 LogUtils.i(TAG, "MediaPlayer volume set to " + volume);
432 // Schedule the next volume bump in the crescendo.
448 /** The method to adjust playback volume; cannot be null. */
454 /** The duration over which to increase the volume. */
526 // Attempt to adjust the ringtone volume if the user is in a telephone call.
548 * Sets the volume of the ringtone.
550 * @param volume a raw scalar in range 0.0 to 1.0, where 0.0 mutes this player, and 1.0
553 private void setRingtoneVolume(float volume) {
555 mSetVolumeMethod.invoke(mRingtone, volume);
557 LogUtils.e(TAG, "Unable to set volume for android.media.Ringtone", e);
586 * Adjusts the volume of the ringtone being played to create a crescendo effect.
592 // If ringtone is absent or not playing, ignore volume adjustment.
599 // If the crescendo is complete set the volume to the maximum; we're done.
608 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration);
609 setRingtoneVolume(volume);
611 // Schedule the next volume bump in the crescendo.