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

Side by Side Diff: trunk/src/media/audio/audio_output_resampler.h

Issue 101473002: Revert 238325 "Attempt to fix audio wedges by restarting all str..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // AudioOutputDispatcher interface. 47 // AudioOutputDispatcher interface.
48 virtual bool OpenStream() OVERRIDE; 48 virtual bool OpenStream() OVERRIDE;
49 virtual bool StartStream(AudioOutputStream::AudioSourceCallback* callback, 49 virtual bool StartStream(AudioOutputStream::AudioSourceCallback* callback,
50 AudioOutputProxy* stream_proxy) OVERRIDE; 50 AudioOutputProxy* stream_proxy) OVERRIDE;
51 virtual void StopStream(AudioOutputProxy* stream_proxy) OVERRIDE; 51 virtual void StopStream(AudioOutputProxy* stream_proxy) OVERRIDE;
52 virtual void StreamVolumeSet(AudioOutputProxy* stream_proxy, 52 virtual void StreamVolumeSet(AudioOutputProxy* stream_proxy,
53 double volume) OVERRIDE; 53 double volume) OVERRIDE;
54 virtual void CloseStream(AudioOutputProxy* stream_proxy) OVERRIDE; 54 virtual void CloseStream(AudioOutputProxy* stream_proxy) OVERRIDE;
55 virtual void Shutdown() OVERRIDE; 55 virtual void Shutdown() OVERRIDE;
56 virtual void CloseStreamsForWedgeFix() OVERRIDE;
57 virtual void RestartStreamsForWedgeFix() OVERRIDE;
58 56
59 private: 57 private:
60 friend class base::RefCountedThreadSafe<AudioOutputResampler>; 58 friend class base::RefCountedThreadSafe<AudioOutputResampler>;
61 virtual ~AudioOutputResampler(); 59 virtual ~AudioOutputResampler();
62 60
63 // Converts low latency based output parameters into high latency 61 // Converts low latency based output parameters into high latency
64 // appropriate output parameters in error situations. 62 // appropriate output parameters in error situations.
65 void SetupFallbackParams(); 63 void SetupFallbackParams();
66 64
67 // Used to initialize and reinitialize |dispatcher_|. 65 // Used to initialize and reinitialize |dispatcher_|.
(...skipping 16 matching lines...) Expand all
84 // Whether any streams have been opened through |dispatcher_|, if so we can't 82 // Whether any streams have been opened through |dispatcher_|, if so we can't
85 // fallback on future OpenStream() failures. 83 // fallback on future OpenStream() failures.
86 bool streams_opened_; 84 bool streams_opened_;
87 85
88 DISALLOW_COPY_AND_ASSIGN(AudioOutputResampler); 86 DISALLOW_COPY_AND_ASSIGN(AudioOutputResampler);
89 }; 87 };
90 88
91 } // namespace media 89 } // namespace media
92 90
93 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_ 91 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_
OLDNEW
« no previous file with comments | « trunk/src/media/audio/audio_output_proxy_unittest.cc ('k') | trunk/src/media/audio/audio_output_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698