OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chromecast/media/cma/backend/alsa/alsa_wrapper.h" | 5 #include "chromecast/media/cma/backend/alsa/alsa_wrapper.h" |
6 | 6 |
7 #include "chromecast/media/cma/backend/alsa/alsa_features.h" | 7 #include "chromecast/media/cma/backend/alsa/alsa_features.h" |
8 | 8 |
9 namespace chromecast { | 9 namespace chromecast { |
10 namespace media { | 10 namespace media { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 ssize_t AlsaWrapper::PcmFormatSize(snd_pcm_format_t format, size_t samples) { | 45 ssize_t AlsaWrapper::PcmFormatSize(snd_pcm_format_t format, size_t samples) { |
46 return snd_pcm_format_size(format, samples); | 46 return snd_pcm_format_size(format, samples); |
47 } | 47 } |
48 | 48 |
49 void AlsaWrapper::PcmStatusGetHtstamp(const snd_pcm_status_t* obj, | 49 void AlsaWrapper::PcmStatusGetHtstamp(const snd_pcm_status_t* obj, |
50 snd_htimestamp_t* ptr) { | 50 snd_htimestamp_t* ptr) { |
51 snd_pcm_status_get_htstamp(obj, ptr); | 51 snd_pcm_status_get_htstamp(obj, ptr); |
52 } | 52 } |
53 | 53 |
| 54 snd_pcm_state_t AlsaWrapper::PcmStatusGetState(const snd_pcm_status_t* obj) { |
| 55 return snd_pcm_status_get_state(obj); |
| 56 } |
| 57 |
54 int AlsaWrapper::PcmHwParamsMalloc(snd_pcm_hw_params_t** ptr) { | 58 int AlsaWrapper::PcmHwParamsMalloc(snd_pcm_hw_params_t** ptr) { |
55 return snd_pcm_hw_params_malloc(ptr); | 59 return snd_pcm_hw_params_malloc(ptr); |
56 } | 60 } |
57 | 61 |
58 void AlsaWrapper::PcmHwParamsFree(snd_pcm_hw_params_t* obj) { | 62 void AlsaWrapper::PcmHwParamsFree(snd_pcm_hw_params_t* obj) { |
59 snd_pcm_hw_params_free(obj); | 63 snd_pcm_hw_params_free(obj); |
60 } | 64 } |
61 | 65 |
62 int AlsaWrapper::PcmHwParamsCurrent(snd_pcm_t* handle, | 66 int AlsaWrapper::PcmHwParamsCurrent(snd_pcm_t* handle, |
63 snd_pcm_hw_params_t* params) { | 67 snd_pcm_hw_params_t* params) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 return 0; | 179 return 0; |
176 #endif // BUILDFLAG(ALSA_MONOTONIC_RAW_TSTAMPS) | 180 #endif // BUILDFLAG(ALSA_MONOTONIC_RAW_TSTAMPS) |
177 } | 181 } |
178 | 182 |
179 int AlsaWrapper::PcmSwParams(snd_pcm_t* handle, snd_pcm_sw_params_t* params) { | 183 int AlsaWrapper::PcmSwParams(snd_pcm_t* handle, snd_pcm_sw_params_t* params) { |
180 return snd_pcm_sw_params(handle, params); | 184 return snd_pcm_sw_params(handle, params); |
181 } | 185 } |
182 | 186 |
183 } // namespace media | 187 } // namespace media |
184 } // namespace chromecast | 188 } // namespace chromecast |
OLD | NEW |