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

Side by Side Diff: media/audio/alsa/alsa_output.h

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
« no previous file with comments | « media/audio/alsa/alsa_input.cc ('k') | media/audio/alsa/alsa_output.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Creates an output stream based on the ALSA PCM interface. 5 // Creates an output stream based on the ALSA PCM interface.
6 // 6 //
7 // On device write failure, the stream will move itself to an invalid state. 7 // On device write failure, the stream will move itself to an invalid state.
8 // No more data will be pulled from the data source, or written to the device. 8 // No more data will be pulled from the data source, or written to the device.
9 // All calls to public API functions will either no-op themselves, or return an 9 // All calls to public API functions will either no-op themselves, or return an
10 // error if possible. Specifically, If the stream is in an error state, Open() 10 // error if possible. Specifically, If the stream is in an error state, Open()
11 // will return false, and Start() will call OnError() immediately on the 11 // will return false, and Start() will call OnError() immediately on the
12 // provided callback. 12 // provided callback.
13 // 13 //
14 // If the stream is successfully opened, Close() must be called. After Close 14 // If the stream is successfully opened, Close() must be called. After Close
15 // has been called, the object should be regarded as deleted and not touched. 15 // has been called, the object should be regarded as deleted and not touched.
16 // 16 //
17 // AlsaPcmOutputStream is a single threaded class that should only be used from 17 // AlsaPcmOutputStream is a single threaded class that should only be used from
18 // the audio thread. When modifying the code in this class, please read the 18 // the audio thread. When modifying the code in this class, please read the
19 // threading assumptions at the top of the implementation. 19 // threading assumptions at the top of the implementation.
20 20
21 #ifndef MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_ 21 #ifndef MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_
22 #define MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_ 22 #define MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_
23 23
24 #include <alsa/asoundlib.h> 24 #include <alsa/asoundlib.h>
25 #include <stdint.h>
25 26
26 #include <string> 27 #include <string>
27 28
28 #include "base/compiler_specific.h" 29 #include "base/compiler_specific.h"
29 #include "base/gtest_prod_util.h" 30 #include "base/gtest_prod_util.h"
30 #include "base/macros.h" 31 #include "base/macros.h"
31 #include "base/memory/scoped_ptr.h" 32 #include "base/memory/scoped_ptr.h"
32 #include "base/memory/weak_ptr.h" 33 #include "base/memory/weak_ptr.h"
33 #include "base/time/time.h" 34 #include "base/time/time.h"
34 #include "media/audio/audio_io.h" 35 #include "media/audio/audio_io.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); 223 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream);
223 }; 224 };
224 225
225 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, 226 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
226 AlsaPcmOutputStream::InternalState); 227 AlsaPcmOutputStream::InternalState);
227 228
228 }; // namespace media 229 }; // namespace media
229 230
230 #endif // MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_ 231 #endif // MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_
OLDNEW
« no previous file with comments | « media/audio/alsa/alsa_input.cc ('k') | media/audio/alsa/alsa_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698