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

Unified Diff: media/audio/mac/audio_manager_mac.h

Issue 17463009: Try not to let the AUHAL driver get stuck sending silence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify comments. Created 7 years, 6 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
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_manager_mac.h
diff --git a/media/audio/mac/audio_manager_mac.h b/media/audio/mac/audio_manager_mac.h
index d1177ea1981c048f697fb62bd2efe845e657e3f8..cd3cc2e94b501f2649acb44f3989bb4dc9171a91 100644
--- a/media/audio/mac/audio_manager_mac.h
+++ b/media/audio/mac/audio_manager_mac.h
@@ -56,6 +56,10 @@ class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase {
static int HardwareSampleRateForDevice(AudioDeviceID device_id);
static int HardwareSampleRate();
+ // Notify streams of a device change if the default output device or its
+ // sample rate has changed, otherwise does nothing.
+ void HandleDeviceChanges();
+
protected:
virtual ~AudioManagerMac();
@@ -68,7 +72,6 @@ class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase {
// Helper methods for constructing AudioDeviceListenerMac on the audio thread.
void CreateDeviceListener();
void DestroyDeviceListener();
- void HandleDeviceChanges();
scoped_ptr<AudioDeviceListenerMac> output_device_listener_;
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698