am 0a7dad7d: am 847e6d5a: am 8351fccc: Merge "Fix track sample rate limit" into lmp-dev

* commit '0a7dad7dfe451a7352c9f3c096fffda4ee2d566b':
  Fix track sample rate limit
This commit is contained in:
Andy Hung
2014-08-08 04:10:01 +00:00
committed by Android Git Automerger

View File

@@ -479,7 +479,7 @@ public class AudioTrack
int channelConfig, int audioFormat, int mode) {
//--------------
// sample rate, note these values are subject to change
if ( (sampleRateInHz < 4000) || (sampleRateInHz > 48000) ) {
if (sampleRateInHz < SAMPLE_RATE_HZ_MIN || sampleRateInHz > SAMPLE_RATE_HZ_MAX) {
throw new IllegalArgumentException(sampleRateInHz
+ "Hz is not a supported sample rate.");
}