| OLD | NEW |
| 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_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 private: | 113 private: |
| 114 // StreamMixerAlsa::InputQueue implementation: | 114 // StreamMixerAlsa::InputQueue implementation: |
| 115 int input_samples_per_second() const override; | 115 int input_samples_per_second() const override; |
| 116 float volume_multiplier() const override; | 116 float volume_multiplier() const override; |
| 117 bool primary() const override; | 117 bool primary() const override; |
| 118 bool IsDeleting() const override; | 118 bool IsDeleting() const override; |
| 119 void Initialize(const MediaPipelineBackendAlsa::RenderingDelay& | 119 void Initialize(const MediaPipelineBackendAlsa::RenderingDelay& |
| 120 mixer_rendering_delay) override; | 120 mixer_rendering_delay) override; |
| 121 int MaxReadSize() override; | 121 int MaxReadSize() override; |
| 122 void GetResampledData(::media::AudioBus* dest, int frames) override; | 122 void GetResampledData(::media::AudioBus* dest, int frames) override; |
| 123 void OnSkipped() override; |
| 123 void AfterWriteFrames(const MediaPipelineBackendAlsa::RenderingDelay& | 124 void AfterWriteFrames(const MediaPipelineBackendAlsa::RenderingDelay& |
| 124 mixer_rendering_delay) override; | 125 mixer_rendering_delay) override; |
| 125 void SignalError(StreamMixerAlsaInput::MixerError error) override; | 126 void SignalError(StreamMixerAlsaInput::MixerError error) override; |
| 126 void PrepareToDelete(const OnReadyToDeleteCb& delete_cb) override; | 127 void PrepareToDelete(const OnReadyToDeleteCb& delete_cb) override; |
| 127 | 128 |
| 128 // Tells the mixer to delete |this|. Makes sure not to call |delete_cb_| more | 129 // Tells the mixer to delete |this|. Makes sure not to call |delete_cb_| more |
| 129 // than once for |this|. | 130 // than once for |this|. |
| 130 void DeleteThis(); | 131 void DeleteThis(); |
| 131 MediaPipelineBackendAlsa::RenderingDelay QueueData( | 132 MediaPipelineBackendAlsa::RenderingDelay QueueData( |
| 132 const scoped_refptr<DecoderBufferBase>& data); | 133 const scoped_refptr<DecoderBufferBase>& data); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; | 173 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; |
| 173 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; | 174 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); | 176 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace media | 179 } // namespace media |
| 179 } // namespace chromecast | 180 } // namespace chromecast |
| 180 | 181 |
| 181 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 182 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
| OLD | NEW |