| OLD | NEW |
| 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 #ifndef MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ | 5 #ifndef MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ |
| 6 #define MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ | 6 #define MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ |
| 7 | 7 |
| 8 #include <pulse/pulseaudio.h> | 8 #include <pulse/pulseaudio.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool CreateOutputStream(pa_threaded_mainloop** mainloop, | 68 bool CreateOutputStream(pa_threaded_mainloop** mainloop, |
| 69 pa_context** context, | 69 pa_context** context, |
| 70 pa_stream** stream, | 70 pa_stream** stream, |
| 71 const AudioParameters& params, | 71 const AudioParameters& params, |
| 72 const std::string& device_id, | 72 const std::string& device_id, |
| 73 const std::string& app_name, | 73 const std::string& app_name, |
| 74 pa_stream_notify_cb_t stream_callback, | 74 pa_stream_notify_cb_t stream_callback, |
| 75 pa_stream_request_cb_t write_callback, | 75 pa_stream_request_cb_t write_callback, |
| 76 void* user_data); | 76 void* user_data); |
| 77 | 77 |
| 78 // Utility functions to match up outputs and inputs. |
| 79 std::string GetBusOfInput(pa_threaded_mainloop* mainloop, |
| 80 pa_context* context, |
| 81 const std::string& name); |
| 82 std::string GetOutputCorrespondingTo(pa_threaded_mainloop* mainloop, |
| 83 pa_context* context, |
| 84 const std::string& bus); |
| 85 std::string GetRealDefaultDeviceId(pa_threaded_mainloop* mainloop, |
| 86 pa_context* context, |
| 87 bool input); |
| 78 } // namespace pulse | 88 } // namespace pulse |
| 79 | 89 |
| 80 } // namespace media | 90 } // namespace media |
| 81 | 91 |
| 82 #endif // MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ | 92 #endif // MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ |
| OLD | NEW |