Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Side by Side Diff: media/audio/audio_buffers_state.h

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
6 #define MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ 6 #define MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
7 7
8 #include "media/base/media_export.h" 8 #include "media/base/media_export.h"
9 9
10 namespace media {
11
12 // AudioBuffersState struct stores current state of audio buffers. 10 // AudioBuffersState struct stores current state of audio buffers.
13 // It is used for audio synchronization. 11 // It is used for audio synchronization.
14 struct MEDIA_EXPORT AudioBuffersState { 12 struct MEDIA_EXPORT AudioBuffersState {
15 AudioBuffersState(); 13 AudioBuffersState();
16 AudioBuffersState(int pending_bytes, int hardware_delay_bytes); 14 AudioBuffersState(int pending_bytes, int hardware_delay_bytes);
17 15
18 int total_bytes() { 16 int total_bytes() {
19 return pending_bytes + hardware_delay_bytes; 17 return pending_bytes + hardware_delay_bytes;
20 } 18 }
21 19
22 // Number of bytes we currently have in our software buffer. 20 // Number of bytes we currently have in our software buffer.
23 int pending_bytes; 21 int pending_bytes;
24 22
25 // Number of bytes that have been written to the device, but haven't 23 // Number of bytes that have been written to the device, but haven't
26 // been played yet. 24 // been played yet.
27 int hardware_delay_bytes; 25 int hardware_delay_bytes;
28 }; 26 };
29 27
30 } // namespace media
31
32 #endif // MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_ 28 #endif // MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
OLDNEW
« no previous file with comments | « media/audio/android/audio_track_output_stub_android.cc ('k') | media/audio/audio_buffers_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698