6d78c9bfb68f8a0db1855bc28c087c39a7eb6f2c |
|
04-Aug-2011 |
Glenn Kasten <gkasten@google.com> |
Bug 4603165 playback rate change Non-trivial implementation is only for AudioTrack with rate range 500 to 2000 per mille and property SL_RATEPROP_NOPITCHCORAUDIO; for Android MediaPlayer the rate range is 1000 to 1000 per mille. Details: - no multi-range - fix SMP races in GetRate, SetPropertyConstraints, GetProperties - SetRate only updates mRate if successful - Rate_SetPropertyConstraints only updates mProperties if successful - return SL_RESULT_FEATURE_UNSUPPORTED for non-AudioPlayers which have this interface (currently only MidiPlayer) - for Android, atomically set playback rate and constraints and simplify to use hard-coded constraints rather than querying - per the spec, SetPropertyConstraints now returns SL_RESULT_PARAMETER_INVALID if the constraints are out of range, or SL_RESULT_FEATURE_UNSUPPORTED if the constraints are in range but not supported by this implementation Change-Id: I051ff92b20f3845ffa12bccec778937d42823e5d
/frameworks/wilhelm/src/itf/IPlaybackRate.c
|