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