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

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

Issue 14234023: Remove unused flush operation from Chromium audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 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_NULL_AUDIO_SINK_H_ 5 #ifndef MEDIA_AUDIO_NULL_AUDIO_SINK_H_
6 #define MEDIA_AUDIO_NULL_AUDIO_SINK_H_ 6 #define MEDIA_AUDIO_NULL_AUDIO_SINK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 class MEDIA_EXPORT NullAudioSink 22 class MEDIA_EXPORT NullAudioSink
23 : NON_EXPORTED_BASE(public AudioRendererSink) { 23 : NON_EXPORTED_BASE(public AudioRendererSink) {
24 public: 24 public:
25 NullAudioSink(const scoped_refptr<base::MessageLoopProxy>& message_loop); 25 NullAudioSink(const scoped_refptr<base::MessageLoopProxy>& message_loop);
26 26
27 // AudioRendererSink implementation. 27 // AudioRendererSink implementation.
28 virtual void Initialize(const AudioParameters& params, 28 virtual void Initialize(const AudioParameters& params,
29 RenderCallback* callback) OVERRIDE; 29 RenderCallback* callback) OVERRIDE;
30 virtual void Start() OVERRIDE; 30 virtual void Start() OVERRIDE;
31 virtual void Stop() OVERRIDE; 31 virtual void Stop() OVERRIDE;
32 virtual void Pause(bool flush) OVERRIDE; 32 virtual void Pause() OVERRIDE;
33 virtual void Play() OVERRIDE; 33 virtual void Play() OVERRIDE;
34 virtual bool SetVolume(double volume) OVERRIDE; 34 virtual bool SetVolume(double volume) OVERRIDE;
35 35
36 // Enables audio frame hashing. Must be called prior to Initialize(). 36 // Enables audio frame hashing. Must be called prior to Initialize().
37 void StartAudioHashForTesting(); 37 void StartAudioHashForTesting();
38 38
39 // Returns the hash of all audio frames seen since construction. 39 // Returns the hash of all audio frames seen since construction.
40 std::string GetAudioHashForTesting(); 40 std::string GetAudioHashForTesting();
41 41
42 protected: 42 protected:
(...skipping 12 matching lines...) Expand all
55 55
56 scoped_refptr<base::MessageLoopProxy> message_loop_; 56 scoped_refptr<base::MessageLoopProxy> message_loop_;
57 scoped_ptr<FakeAudioConsumer> fake_consumer_; 57 scoped_ptr<FakeAudioConsumer> fake_consumer_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(NullAudioSink); 59 DISALLOW_COPY_AND_ASSIGN(NullAudioSink);
60 }; 60 };
61 61
62 } // namespace media 62 } // namespace media
63 63
64 #endif // MEDIA_AUDIO_NULL_AUDIO_SINK_H_ 64 #endif // MEDIA_AUDIO_NULL_AUDIO_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698