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

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

Issue 99173007: Merge 238501 "Attempt to fix audio wedges by restarting all stre..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
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
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_output_resampler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
56 58
57 private: 59 private:
58 friend class base::RefCountedThreadSafe<AudioOutputResampler>; 60 friend class base::RefCountedThreadSafe<AudioOutputResampler>;
59 virtual ~AudioOutputResampler(); 61 virtual ~AudioOutputResampler();
60 62
61 // Used to initialize and reinitialize |dispatcher_|. 63 // Used to initialize and reinitialize |dispatcher_|.
62 void Initialize(); 64 void Initialize();
63 65
64 // Dispatcher to proxy all AudioOutputDispatcher calls too. 66 // Dispatcher to proxy all AudioOutputDispatcher calls too.
65 scoped_refptr<AudioOutputDispatcher> dispatcher_; 67 scoped_refptr<AudioOutputDispatcher> dispatcher_;
(...skipping 12 matching lines...) Expand all
78 // Whether any streams have been opened through |dispatcher_|, if so we can't 80 // Whether any streams have been opened through |dispatcher_|, if so we can't
79 // fallback on future OpenStream() failures. 81 // fallback on future OpenStream() failures.
80 bool streams_opened_; 82 bool streams_opened_;
81 83
82 DISALLOW_COPY_AND_ASSIGN(AudioOutputResampler); 84 DISALLOW_COPY_AND_ASSIGN(AudioOutputResampler);
83 }; 85 };
84 86
85 } // namespace media 87 } // namespace media
86 88
87 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_ 89 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_RESAMPLER_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_output_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698