| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |