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

Side by Side Diff: media/audio/mac/audio_input_mac.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
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_MAC_AUDIO_INPUT_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
7 7
8 #include <AudioToolbox/AudioFormat.h> 8 #include <AudioToolbox/AudioFormat.h>
9 #include <AudioToolbox/AudioQueue.h> 9 #include <AudioToolbox/AudioQueue.h>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Manager that owns this stream, used for closing down. 71 // Manager that owns this stream, used for closing down.
72 AudioManagerMac* manager_; 72 AudioManagerMac* manager_;
73 // We use the callback mostly to periodically supply the recorded audio data. 73 // We use the callback mostly to periodically supply the recorded audio data.
74 AudioInputCallback* callback_; 74 AudioInputCallback* callback_;
75 // Structure that holds the stream format details such as bitrate. 75 // Structure that holds the stream format details such as bitrate.
76 AudioStreamBasicDescription format_; 76 AudioStreamBasicDescription format_;
77 // Handle to the OS audio queue object. 77 // Handle to the OS audio queue object.
78 AudioQueueRef audio_queue_; 78 AudioQueueRef audio_queue_;
79 // Size of each of the buffers in |audio_buffers_| 79 // Size of each of the buffers in |audio_buffers_|
80 uint32 buffer_size_bytes_; 80 uint32_t buffer_size_bytes_;
81 // True iff Start() has been called successfully. 81 // True iff Start() has been called successfully.
82 bool started_; 82 bool started_;
83 // Used to determine if we need to slow down |callback_| calls. 83 // Used to determine if we need to slow down |callback_| calls.
84 base::TimeTicks last_fill_; 84 base::TimeTicks last_fill_;
85 // Used to defer Start() to workaround http://crbug.com/160920. 85 // Used to defer Start() to workaround http://crbug.com/160920.
86 base::CancelableClosure deferred_start_cb_; 86 base::CancelableClosure deferred_start_cb_;
87 87
88 scoped_ptr<media::AudioBus> audio_bus_; 88 scoped_ptr<media::AudioBus> audio_bus_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); 90 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream);
91 }; 91 };
92 92
93 } // namespace media 93 } // namespace media
94 94
95 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ 95 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698