OLD | NEW |
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 #include "media/audio/alsa/alsa_wrapper.h" | 5 #include "media/audio/alsa/alsa_wrapper.h" |
6 | 6 |
7 | |
8 namespace media { | 7 namespace media { |
9 | 8 |
10 AlsaWrapper::AlsaWrapper() { | 9 AlsaWrapper::AlsaWrapper() { |
11 } | 10 } |
12 | 11 |
13 AlsaWrapper::~AlsaWrapper() { | 12 AlsaWrapper::~AlsaWrapper() { |
14 } | 13 } |
15 | 14 |
16 int AlsaWrapper::PcmOpen(snd_pcm_t** handle, const char* name, | 15 int AlsaWrapper::PcmOpen(snd_pcm_t** handle, const char* name, |
17 snd_pcm_stream_t stream, int mode) { | 16 snd_pcm_stream_t stream, int mode) { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 int AlsaWrapper::MixerSelemHasCaptureVolume(snd_mixer_elem_t* elem) { | 166 int AlsaWrapper::MixerSelemHasCaptureVolume(snd_mixer_elem_t* elem) { |
168 return snd_mixer_selem_has_capture_volume(elem); | 167 return snd_mixer_selem_has_capture_volume(elem); |
169 } | 168 } |
170 | 169 |
171 int AlsaWrapper::MixerSelemGetCaptureVolumeRange(snd_mixer_elem_t* elem, | 170 int AlsaWrapper::MixerSelemGetCaptureVolumeRange(snd_mixer_elem_t* elem, |
172 long* min, long* max) { | 171 long* min, long* max) { |
173 return snd_mixer_selem_get_capture_volume_range(elem, min, max); | 172 return snd_mixer_selem_get_capture_volume_range(elem, min, max); |
174 } | 173 } |
175 | 174 |
176 } // namespace media | 175 } // namespace media |
OLD | NEW |