Remove repaint callbacks from Viewport.
[chromium-blink-merge.git] / media / audio / audio_buffers_state.h
blob79244aeb1a51dc24d103da8a453f41708ba4bad0
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
6 #define MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
8 #include "media/base/media_export.h"
10 namespace media {
12 // AudioBuffersState struct stores current state of audio buffers.
13 // It is used for audio synchronization.
14 struct MEDIA_EXPORT AudioBuffersState {
15 AudioBuffersState();
16 AudioBuffersState(int pending_bytes, int hardware_delay_bytes);
18 int total_bytes() {
19 return pending_bytes + hardware_delay_bytes;
22 // Number of bytes we currently have in our software buffer.
23 int pending_bytes;
25 // Number of bytes that have been written to the device, but haven't
26 // been played yet.
27 int hardware_delay_bytes;
30 } // namespace media
32 #endif // MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_