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

Side by Side Diff: media/audio/alsa/alsa_input.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 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 #ifndef MEDIA_AUDIO_ALSA_ALSA_INPUT_H_ 5 #ifndef MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
6 #define MEDIA_AUDIO_ALSA_ALSA_INPUT_H_ 6 #define MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
7 7
8 #include <alsa/asoundlib.h> 8 #include <alsa/asoundlib.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 std::string device_name_; 74 std::string device_name_;
75 AudioParameters params_; 75 AudioParameters params_;
76 int bytes_per_buffer_; 76 int bytes_per_buffer_;
77 AlsaWrapper* wrapper_; 77 AlsaWrapper* wrapper_;
78 base::TimeDelta buffer_duration_; // Length of each recorded buffer. 78 base::TimeDelta buffer_duration_; // Length of each recorded buffer.
79 AudioInputCallback* callback_; // Valid during a recording session. 79 AudioInputCallback* callback_; // Valid during a recording session.
80 base::TimeTicks next_read_time_; // Scheduled time for next read callback. 80 base::TimeTicks next_read_time_; // Scheduled time for next read callback.
81 snd_pcm_t* device_handle_; // Handle to the ALSA PCM recording device. 81 snd_pcm_t* device_handle_; // Handle to the ALSA PCM recording device.
82 snd_mixer_t* mixer_handle_; // Handle to the ALSA microphone mixer. 82 snd_mixer_t* mixer_handle_; // Handle to the ALSA microphone mixer.
83 snd_mixer_elem_t* mixer_element_handle_; // Handle to the capture element. 83 snd_mixer_elem_t* mixer_element_handle_; // Handle to the capture element.
84 scoped_ptr<uint8[]> audio_buffer_; // Buffer used for reading audio data. 84 scoped_ptr<uint8_t[]> audio_buffer_; // Buffer used for reading audio data.
85 bool read_callback_behind_schedule_; 85 bool read_callback_behind_schedule_;
86 scoped_ptr<AudioBus> audio_bus_; 86 scoped_ptr<AudioBus> audio_bus_;
87 87
88 // NOTE: Weak pointers must be invalidated before all other member variables. 88 // NOTE: Weak pointers must be invalidated before all other member variables.
89 base::WeakPtrFactory<AlsaPcmInputStream> weak_factory_; 89 base::WeakPtrFactory<AlsaPcmInputStream> weak_factory_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(AlsaPcmInputStream); 91 DISALLOW_COPY_AND_ASSIGN(AlsaPcmInputStream);
92 }; 92 };
93 93
94 } // namespace media 94 } // namespace media
95 95
96 #endif // MEDIA_AUDIO_ALSA_ALSA_INPUT_H_ 96 #endif // MEDIA_AUDIO_ALSA_ALSA_INPUT_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | media/audio/alsa/alsa_input.cc » ('j') | media/cdm/stub/stub_cdm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698