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

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

Issue 159380: Software volume control hook-up in linux. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | media/audio/linux/alsa_output.cc » ('j') | media/audio/linux/alsa_output.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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. The current 5 // Creates an output stream based on the ALSA PCM interface. The current
6 // implementation creates one thread per ALSA playback handle that is 6 // implementation creates one thread per ALSA playback handle that is
7 // responsible for synchronously pulling data from the audio data source. 7 // responsible for synchronously pulling data from the audio data source.
8 // 8 //
9 // This output stream buffers in two places: 9 // This output stream buffers in two places:
10 // (1) In the ALSA device 10 // (1) In the ALSA device
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 size_t packet_size_; 152 size_t packet_size_;
153 153
154 // Flag indiciating the device write tasks have stopped scheduling 154 // Flag indiciating the device write tasks have stopped scheduling
155 // themselves. This should only be modified by the BufferPackets() and 155 // themselves. This should only be modified by the BufferPackets() and
156 // FillAlsaDeviceBuffer() methods. 156 // FillAlsaDeviceBuffer() methods.
157 bool device_write_suspended_; 157 bool device_write_suspended_;
158 158
159 // Flag indicating that the resources are already cleaned. 159 // Flag indicating that the resources are already cleaned.
160 bool resources_released_; 160 bool resources_released_;
161 161
162 // Volume level from 0 to 1.
163 float volume_;
164
162 DISALLOW_COPY_AND_ASSIGN(AlsaPCMOutputStream); 165 DISALLOW_COPY_AND_ASSIGN(AlsaPCMOutputStream);
163 }; 166 };
164 167
165 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ 168 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/linux/alsa_output.cc » ('j') | media/audio/linux/alsa_output.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698