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

Side by Side Diff: media/audio/linux/alsa_output.cc

Issue 18052007: Use a direct include of time headers in media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « media/audio/linux/alsa_output.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // THREAD SAFETY 5 // THREAD SAFETY
6 // 6 //
7 // AlsaPcmOutputStream object is *not* thread-safe and should only be used 7 // AlsaPcmOutputStream object is *not* thread-safe and should only be used
8 // from the audio thread. We DCHECK on this assumption whenever we can. 8 // from the audio thread. We DCHECK on this assumption whenever we can.
9 // 9 //
10 // SEMANTICS OF Close() 10 // SEMANTICS OF Close()
(...skipping 23 matching lines...) Expand all
34 34
35 #include "media/audio/linux/alsa_output.h" 35 #include "media/audio/linux/alsa_output.h"
36 36
37 #include <algorithm> 37 #include <algorithm>
38 38
39 #include "base/bind.h" 39 #include "base/bind.h"
40 #include "base/debug/trace_event.h" 40 #include "base/debug/trace_event.h"
41 #include "base/logging.h" 41 #include "base/logging.h"
42 #include "base/message_loop.h" 42 #include "base/message_loop.h"
43 #include "base/stl_util.h" 43 #include "base/stl_util.h"
44 #include "base/time.h" 44 #include "base/time/time.h"
45 #include "media/audio/linux/alsa_util.h" 45 #include "media/audio/linux/alsa_util.h"
46 #include "media/audio/linux/alsa_wrapper.h" 46 #include "media/audio/linux/alsa_wrapper.h"
47 #include "media/audio/linux/audio_manager_linux.h" 47 #include "media/audio/linux/audio_manager_linux.h"
48 #include "media/base/channel_mixer.h" 48 #include "media/base/channel_mixer.h"
49 #include "media/base/data_buffer.h" 49 #include "media/base/data_buffer.h"
50 #include "media/base/seekable_buffer.h" 50 #include "media/base/seekable_buffer.h"
51 51
52 namespace media { 52 namespace media {
53 53
54 // Set to 0 during debugging if you want error messages due to underrun 54 // Set to 0 during debugging if you want error messages due to underrun
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 } 756 }
757 757
758 // Changes the AudioSourceCallback to proxy calls to. Pass in NULL to 758 // Changes the AudioSourceCallback to proxy calls to. Pass in NULL to
759 // release ownership of the currently registered callback. 759 // release ownership of the currently registered callback.
760 void AlsaPcmOutputStream::set_source_callback(AudioSourceCallback* callback) { 760 void AlsaPcmOutputStream::set_source_callback(AudioSourceCallback* callback) {
761 DCHECK(IsOnAudioThread()); 761 DCHECK(IsOnAudioThread());
762 source_callback_ = callback; 762 source_callback_ = callback;
763 } 763 }
764 764
765 } // namespace media 765 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_output.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698