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

Side by Side Diff: chromecast/media/cma/backend/alsa/audio_decoder_alsa.h

Issue 2612353003: [Chromecast] Fix AudioVideoPipelineDeviceTest failures (Closed)
Patch Set: Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const RenderingDelay& delay) override; 70 const RenderingDelay& delay) override;
71 void OnMixerError(MixerError error) override; 71 void OnMixerError(MixerError error) override;
72 72
73 void CleanUpPcm(); 73 void CleanUpPcm();
74 void CreateDecoder(); 74 void CreateDecoder();
75 void CreateRateShifter(int samples_per_second); 75 void CreateRateShifter(int samples_per_second);
76 void OnDecoderInitialized(bool success); 76 void OnDecoderInitialized(bool success);
77 void OnBufferDecoded(uint64_t input_bytes, 77 void OnBufferDecoded(uint64_t input_bytes,
78 CastAudioDecoder::Status status, 78 CastAudioDecoder::Status status,
79 const scoped_refptr<DecoderBufferBase>& decoded); 79 const scoped_refptr<DecoderBufferBase>& decoded);
80 void CheckBufferComplete();
80 void PushRateShifted(); 81 void PushRateShifted();
81 void PushMorePcm(); 82 void PushMorePcm();
82 void RunEos(); 83 void RunEos();
83 bool BypassDecoder() const; 84 bool BypassDecoder() const;
84 bool ShouldStartClock() const; 85 bool ShouldStartClock() const;
85 void UpdateStatistics(Statistics delta); 86 void UpdateStatistics(Statistics delta);
86 87
87 MediaPipelineBackendAlsa* const backend_; 88 MediaPipelineBackendAlsa* const backend_;
88 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 89 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
89 MediaPipelineBackend::Decoder::Delegate* delegate_; 90 MediaPipelineBackend::Decoder::Delegate* delegate_;
(...skipping 21 matching lines...) Expand all
111 112
112 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_; 113 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa); 115 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa);
115 }; 116 };
116 117
117 } // namespace media 118 } // namespace media
118 } // namespace chromecast 119 } // namespace chromecast
119 120
120 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ 121 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698