Index: media/audio/audio_util.cc |
diff --git a/media/audio/audio_util.cc b/media/audio/audio_util.cc |
index 8caced5204243dd7e1ee1337f6a6e5e7ce9dd386..c607a3add2f565caaa2ef08c052fa82c435d5d98 100644 |
--- a/media/audio/audio_util.cc |
+++ b/media/audio/audio_util.cc |
@@ -438,29 +438,4 @@ void Crossfade(int bytes_to_crossfade, int number_of_channels, |
} |
} |
-// The minimum number of samples in a hardware packet. |
-// This value is selected so that we can handle down to 5khz sample rate. |
-static const int kMinSamplesPerHardwarePacket = 1024; |
- |
-// The maximum number of samples in a hardware packet. |
-// This value is selected so that we can handle up to 192khz sample rate. |
-static const int kMaxSamplesPerHardwarePacket = 64 * 1024; |
- |
-// This constant governs the hardware audio buffer size, this value should be |
-// chosen carefully. |
-// This value is selected so that we have 8192 samples for 48khz streams. |
-static const int kMillisecondsPerHardwarePacket = 170; |
- |
-uint32 SelectSamplesPerPacket(int sample_rate) { |
- // Select the number of samples that can provide at least |
- // |kMillisecondsPerHardwarePacket| worth of audio data. |
- int samples = kMinSamplesPerHardwarePacket; |
- while (samples <= kMaxSamplesPerHardwarePacket && |
- samples * base::Time::kMillisecondsPerSecond < |
- sample_rate * kMillisecondsPerHardwarePacket) { |
- samples *= 2; |
- } |
- return samples; |
-} |
- |
} // namespace media |