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

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

Issue 126793002: Add Stop() to AudioDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blank lines Created 6 years, 11 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
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_FILTERS_OPUS_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // AudioDecoder implementation. 34 // AudioDecoder implementation.
35 virtual void Initialize(DemuxerStream* stream, 35 virtual void Initialize(DemuxerStream* stream,
36 const PipelineStatusCB& status_cb, 36 const PipelineStatusCB& status_cb,
37 const StatisticsCB& statistics_cb) OVERRIDE; 37 const StatisticsCB& statistics_cb) OVERRIDE;
38 virtual void Read(const ReadCB& read_cb) OVERRIDE; 38 virtual void Read(const ReadCB& read_cb) OVERRIDE;
39 virtual int bits_per_channel() OVERRIDE; 39 virtual int bits_per_channel() OVERRIDE;
40 virtual ChannelLayout channel_layout() OVERRIDE; 40 virtual ChannelLayout channel_layout() OVERRIDE;
41 virtual int samples_per_second() OVERRIDE; 41 virtual int samples_per_second() OVERRIDE;
42 virtual void Reset(const base::Closure& closure) OVERRIDE; 42 virtual void Reset(const base::Closure& closure) OVERRIDE;
43 virtual void Stop(const base::Closure& closure) OVERRIDE;
43 44
44 private: 45 private:
45 // Reads from the demuxer stream with corresponding callback method. 46 // Reads from the demuxer stream with corresponding callback method.
46 void ReadFromDemuxerStream(); 47 void ReadFromDemuxerStream();
47 void BufferReady(DemuxerStream::Status status, 48 void BufferReady(DemuxerStream::Status status,
48 const scoped_refptr<DecoderBuffer>& input); 49 const scoped_refptr<DecoderBuffer>& input);
49 50
50 51
51 bool ConfigureDecoder(); 52 bool ConfigureDecoder();
52 void CloseDecoder(); 53 void CloseDecoder();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Timestamp to be subtracted from all the frames. This is typically computed 91 // Timestamp to be subtracted from all the frames. This is typically computed
91 // from the CodecDelay value in the container. 92 // from the CodecDelay value in the container.
92 base::TimeDelta timestamp_offset_; 93 base::TimeDelta timestamp_offset_;
93 94
94 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder); 95 DISALLOW_IMPLICIT_CONSTRUCTORS(OpusAudioDecoder);
95 }; 96 };
96 97
97 } // namespace media 98 } // namespace media
98 99
99 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_ 100 #endif // MEDIA_FILTERS_OPUS_AUDIO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698