Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1589)

Unified Diff: media/audio/audio_manager.h

Issue 2908073002: Make OS audio buffer size limits visible. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index f92651ed0627934de813316751d8b6158b7c66bb..4abdb64611c94edc66172c52449584fa39aa22c8 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -187,6 +187,11 @@ class MEDIA_EXPORT AudioManager {
// Limits the number of streams that can be created for testing purposes.
virtual void SetMaxStreamCountForTesting(int max_input, int max_output);
+ // Get the minimum and maximum audio buffer sizes. The definitions exist in
+ // the specific AudioManager implementations.
+ static int GetMinimumAudioBufferSize(int sample_rate);
+ static int GetMaximumAudioBufferSize(int sample_rate);
+
protected:
FRIEND_TEST_ALL_PREFIXES(AudioManagerTest, AudioDebugRecording);
friend class AudioDeviceInfoAccessorForTests;

Powered by Google App Engine
This is Rietveld 408576698