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

Unified Diff: media/audio/android/audio_manager_android.h

Issue 110173003: Refactor audio manager for Android to avoid heavy tasks at startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed BT usage and improved state handling Created 7 years 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/android/audio_manager_android.h
diff --git a/media/audio/android/audio_manager_android.h b/media/audio/android/audio_manager_android.h
index d9744ff0999f54fe20ca62db94459aecdc7a70fb..61237b3380b95a748cd638b1fae3e7bc41931178 100644
--- a/media/audio/android/audio_manager_android.h
+++ b/media/audio/android/audio_manager_android.h
@@ -67,10 +67,12 @@ class MEDIA_EXPORT AudioManagerAndroid : public AudioManagerBase {
const AudioParameters& input_params) OVERRIDE;
private:
+ bool IsFirstCreatedAudioStream();
tommi (sloooow) - chröme 2013/12/10 21:19:11 HasOneAudioStream? (IsFirstXxx sounds like it woul
henrika (OOO until Aug 14) 2013/12/11 13:16:38 Removed.
+ bool IsLastDestroyedAudioStream();
tommi (sloooow) - chröme 2013/12/10 21:19:11 It's not clear how this is different from the func
henrika (OOO until Aug 14) 2013/12/11 13:16:38 Renamed. Regarding input & output. The old soluti
tommi (sloooow) - chröme 2013/12/11 17:25:05 sgtm
void Init();
void Close();
- void SetAudioMode(int mode);
- void SetAudioDevice(const std::string& device_id);
+ void SetCommunicationAudioModeOn(bool on);
+ bool SetAudioDevice(const std::string& device_id);
int GetNativeOutputSampleRate();
bool IsAudioLowLatencySupported();
int GetAudioLowLatencyOutputFrameSize();

Powered by Google App Engine
This is Rietveld 408576698