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_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ | 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ |
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ | 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 void OnClosed(); | 41 void OnClosed(); |
42 void PushBuffer(); | 42 void PushBuffer(); |
43 void OnPushBufferComplete(bool success); | 43 void OnPushBufferComplete(bool success); |
44 | 44 |
45 const ::media::AudioParameters audio_params_; | 45 const ::media::AudioParameters audio_params_; |
46 CastAudioManager* const audio_manager_; | 46 CastAudioManager* const audio_manager_; |
47 | 47 |
48 double volume_; | 48 double volume_; |
49 AudioSourceCallback* source_callback_; | 49 AudioSourceCallback* source_callback_; |
50 scoped_ptr<::media::AudioBus> audio_bus_; | 50 std::unique_ptr<::media::AudioBus> audio_bus_; |
51 scoped_refptr<media::DecoderBufferBase> decoder_buffer_; | 51 scoped_refptr<media::DecoderBufferBase> decoder_buffer_; |
52 scoped_ptr<Backend> backend_; | 52 std::unique_ptr<Backend> backend_; |
53 const base::TimeDelta buffer_duration_; | 53 const base::TimeDelta buffer_duration_; |
54 bool push_in_progress_; | 54 bool push_in_progress_; |
55 base::TimeTicks next_push_time_; | 55 base::TimeTicks next_push_time_; |
56 | 56 |
57 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; | 57 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; |
58 scoped_refptr<base::SingleThreadTaskRunner> backend_task_runner_; | 58 scoped_refptr<base::SingleThreadTaskRunner> backend_task_runner_; |
59 | 59 |
60 base::WeakPtrFactory<CastAudioOutputStream> weak_factory_; | 60 base::WeakPtrFactory<CastAudioOutputStream> weak_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(CastAudioOutputStream); | 62 DISALLOW_COPY_AND_ASSIGN(CastAudioOutputStream); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace media | 65 } // namespace media |
66 } // namespace chromecast | 66 } // namespace chromecast |
67 | 67 |
68 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ | 68 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_OUTPUT_STREAM_H_ |
OLD | NEW |