OLD | NEW |
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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/sync_socket.h" | 10 #include "base/sync_socket.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // The time of the last Write call. | 64 // The time of the last Write call. |
65 base::Time last_write_time_; | 65 base::Time last_write_time_; |
66 | 66 |
67 // Size in bytes of each audio bus. | 67 // Size in bytes of each audio bus. |
68 const int audio_bus_memory_size_; | 68 const int audio_bus_memory_size_; |
69 | 69 |
70 // Increasing ID used for audio buffers correct sequence at read side. | 70 // Increasing ID used for audio buffers correct sequence at read side. |
71 uint32_t next_buffer_id_; | 71 uint32_t next_buffer_id_; |
72 | 72 |
| 73 // Keeps track of number of expected buffer reads on the renderer side. |
| 74 int expected_buffer_reads_; |
| 75 |
| 76 // Counts the number of timeouts when verifying buffer reads. |
| 77 int read_verification_timeouts_; |
| 78 |
73 // Vector of audio buses allocated during construction and deleted in the | 79 // Vector of audio buses allocated during construction and deleted in the |
74 // destructor. | 80 // destructor. |
75 ScopedVector<media::AudioBus> audio_buses_; | 81 ScopedVector<media::AudioBus> audio_buses_; |
76 | 82 |
77 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter); | 83 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter); |
78 }; | 84 }; |
79 | 85 |
80 } // namespace content | 86 } // namespace content |
81 | 87 |
82 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ | 88 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ |
OLD | NEW |