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

Side by Side Diff: media/filters/audio_renderer_impl.h

Issue 5527003: Rename MediaFilter and MediaFilterCollection to Filter and FilterCollection, respectively. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Missed a few more Created 10 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/filters/audio_renderer_base.h ('k') | media/filters/decoder_base.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FILTERS_AUDIO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_
6 #define MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ 6 #define MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_
7 7
8 // This is the default implementation of AudioRenderer, which uses the audio 8 // This is the default implementation of AudioRenderer, which uses the audio
9 // interfaces to open an audio device. Although it cannot be used in the 9 // interfaces to open an audio device. Although it cannot be used in the
10 // sandbox, it serves as a reference implementation and can be used in other 10 // sandbox, it serves as a reference implementation and can be used in other
(...skipping 12 matching lines...) Expand all
23 #include "media/filters/audio_renderer_base.h" 23 #include "media/filters/audio_renderer_base.h"
24 24
25 namespace media { 25 namespace media {
26 26
27 class AudioRendererImpl : public AudioRendererBase, 27 class AudioRendererImpl : public AudioRendererBase,
28 public AudioOutputStream::AudioSourceCallback { 28 public AudioOutputStream::AudioSourceCallback {
29 public: 29 public:
30 AudioRendererImpl(); 30 AudioRendererImpl();
31 virtual ~AudioRendererImpl(); 31 virtual ~AudioRendererImpl();
32 32
33 // MediaFilter implementation. 33 // Filter implementation.
34 virtual void SetPlaybackRate(float playback_rate); 34 virtual void SetPlaybackRate(float playback_rate);
35 35
36 // AudioRenderer implementation. 36 // AudioRenderer implementation.
37 virtual void SetVolume(float volume); 37 virtual void SetVolume(float volume);
38 38
39 // AudioSourceCallback implementation. 39 // AudioSourceCallback implementation.
40 virtual uint32 OnMoreData(AudioOutputStream* stream, uint8* dest, 40 virtual uint32 OnMoreData(AudioOutputStream* stream, uint8* dest,
41 uint32 len, AudioBuffersState buffers_state); 41 uint32 len, AudioBuffersState buffers_state);
42 virtual void OnClose(AudioOutputStream* stream); 42 virtual void OnClose(AudioOutputStream* stream);
43 virtual void OnError(AudioOutputStream* stream, int code); 43 virtual void OnError(AudioOutputStream* stream, int code);
44 44
45 protected: 45 protected:
46 // AudioRendererBase implementation. 46 // AudioRendererBase implementation.
47 virtual bool OnInitialize(const MediaFormat& media_format); 47 virtual bool OnInitialize(const MediaFormat& media_format);
48 virtual void OnStop(); 48 virtual void OnStop();
49 49
50 private: 50 private:
51 // Audio output stream device. 51 // Audio output stream device.
52 AudioOutputStream* stream_; 52 AudioOutputStream* stream_;
53 int bytes_per_second_; 53 int bytes_per_second_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 55 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
56 }; 56 };
57 57
58 } // namespace media 58 } // namespace media
59 59
60 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ 60 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/filters/audio_renderer_base.h ('k') | media/filters/decoder_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698