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

Side by Side Diff: media/audio/linux/alsa_wrapper.cc

Issue 10533007: Revert 138939 - alsa_output: Drain and pause pcm when stopping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/linux/alsa_wrapper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/linux/alsa_wrapper.h" 5 #include "media/audio/linux/alsa_wrapper.h"
6 6
7 #include <alsa/asoundlib.h> 7 #include <alsa/asoundlib.h>
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 int AlsaWrapper::PcmClose(snd_pcm_t* handle) { 38 int AlsaWrapper::PcmClose(snd_pcm_t* handle) {
39 return snd_pcm_close(handle); 39 return snd_pcm_close(handle);
40 } 40 }
41 41
42 int AlsaWrapper::PcmPrepare(snd_pcm_t* handle) { 42 int AlsaWrapper::PcmPrepare(snd_pcm_t* handle) {
43 return snd_pcm_prepare(handle); 43 return snd_pcm_prepare(handle);
44 } 44 }
45 45
46 int AlsaWrapper::PcmDrain(snd_pcm_t* handle) {
47 return snd_pcm_drain(handle);
48 }
49
50 int AlsaWrapper::PcmDrop(snd_pcm_t* handle) { 46 int AlsaWrapper::PcmDrop(snd_pcm_t* handle) {
51 return snd_pcm_drop(handle); 47 return snd_pcm_drop(handle);
52 } 48 }
53 49
54 int AlsaWrapper::PcmDelay(snd_pcm_t* handle, snd_pcm_sframes_t* delay) { 50 int AlsaWrapper::PcmDelay(snd_pcm_t* handle, snd_pcm_sframes_t* delay) {
55 return snd_pcm_delay(handle, delay); 51 return snd_pcm_delay(handle, delay);
56 } 52 }
57 53
58 snd_pcm_sframes_t AlsaWrapper::PcmWritei(snd_pcm_t* handle, 54 snd_pcm_sframes_t AlsaWrapper::PcmWritei(snd_pcm_t* handle,
59 const void* buffer, 55 const void* buffer,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 int AlsaWrapper::MixerSelemHasCaptureVolume(snd_mixer_elem_t* elem) { 223 int AlsaWrapper::MixerSelemHasCaptureVolume(snd_mixer_elem_t* elem) {
228 return snd_mixer_selem_has_capture_volume(elem); 224 return snd_mixer_selem_has_capture_volume(elem);
229 } 225 }
230 226
231 int AlsaWrapper::MixerSelemGetCaptureVolumeRange(snd_mixer_elem_t* elem, 227 int AlsaWrapper::MixerSelemGetCaptureVolumeRange(snd_mixer_elem_t* elem,
232 long* min, long* max) { 228 long* min, long* max) {
233 return snd_mixer_selem_get_capture_volume_range(elem, min, max); 229 return snd_mixer_selem_get_capture_volume_range(elem, min, max);
234 } 230 }
235 231
236 } // namespace media 232 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698