| 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_SYNC_READER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ |
| 7 | 7 |
| 8 #include "base/file_descriptor_posix.h" | |
| 9 #include "base/process/process.h" | 8 #include "base/process/process.h" |
| 10 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
| 11 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 13 #include "media/audio/audio_output_controller.h" | 12 #include "media/audio/audio_output_controller.h" |
| 14 #include "media/base/audio_bus.h" | 13 #include "media/base/audio_bus.h" |
| 15 | 14 |
| 15 #if defined(OS_POSIX) |
| 16 #include "base/file_descriptor_posix.h" |
| 17 #endif |
| 18 |
| 16 namespace base { | 19 namespace base { |
| 17 class SharedMemory; | 20 class SharedMemory; |
| 18 } | 21 } |
| 19 | 22 |
| 20 namespace content { | 23 namespace content { |
| 21 | 24 |
| 22 // A AudioOutputController::SyncReader implementation using SyncSocket. This | 25 // A AudioOutputController::SyncReader implementation using SyncSocket. This |
| 23 // is used by AudioOutputController to provide a low latency data source for | 26 // is used by AudioOutputController to provide a low latency data source for |
| 24 // transmitting audio packets between the browser process and the renderer | 27 // transmitting audio packets between the browser process and the renderer |
| 25 // process. | 28 // process. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // The index of the audio buffer we're expecting to be sent from the renderer; | 83 // The index of the audio buffer we're expecting to be sent from the renderer; |
| 81 // used to block with timeout for audio data. | 84 // used to block with timeout for audio data. |
| 82 uint32 buffer_index_; | 85 uint32 buffer_index_; |
| 83 | 86 |
| 84 DISALLOW_COPY_AND_ASSIGN(AudioSyncReader); | 87 DISALLOW_COPY_AND_ASSIGN(AudioSyncReader); |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace content | 90 } // namespace content |
| 88 | 91 |
| 89 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ | 92 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ |
| OLD | NEW |