Chromium Code Reviews| 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 //------------------------------------------------ | 5 //------------------------------------------------ |
| 6 // Functions from pulse used in media code. | 6 // Functions from pulse used in media code. |
| 7 //------------------------------------------------ | 7 //------------------------------------------------ |
| 8 pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop* m); | 8 pa_mainloop_api* pa_threaded_mainloop_get_api(pa_threaded_mainloop* m); |
| 9 void pa_threaded_mainloop_free(pa_threaded_mainloop* m); | 9 void pa_threaded_mainloop_free(pa_threaded_mainloop* m); |
| 10 pa_threaded_mainloop* pa_threaded_mainloop_new(); | 10 pa_threaded_mainloop* pa_threaded_mainloop_new(); |
| 11 void pa_threaded_mainloop_lock(pa_threaded_mainloop* m); | 11 void pa_threaded_mainloop_lock(pa_threaded_mainloop* m); |
| 12 int pa_threaded_mainloop_in_thread(pa_threaded_mainloop* m); | 12 int pa_threaded_mainloop_in_thread(pa_threaded_mainloop* m); |
| 13 void pa_threaded_mainloop_signal(pa_threaded_mainloop* m, int wait_for_accept); | 13 void pa_threaded_mainloop_signal(pa_threaded_mainloop* m, int wait_for_accept); |
| 14 int pa_threaded_mainloop_start(pa_threaded_mainloop* m); | 14 int pa_threaded_mainloop_start(pa_threaded_mainloop* m); |
| 15 void pa_threaded_mainloop_stop(pa_threaded_mainloop* m); | 15 void pa_threaded_mainloop_stop(pa_threaded_mainloop* m); |
| 16 void pa_threaded_mainloop_unlock(pa_threaded_mainloop* m); | 16 void pa_threaded_mainloop_unlock(pa_threaded_mainloop* m); |
| 17 void pa_threaded_mainloop_wait(pa_threaded_mainloop* m); | 17 void pa_threaded_mainloop_wait(pa_threaded_mainloop* m); |
| 18 pa_channel_map* pa_channel_map_init(pa_channel_map* m); | 18 pa_channel_map* pa_channel_map_init(pa_channel_map* m); |
| 19 pa_channel_map* pa_channel_map_init_mono(pa_channel_map* m); | 19 pa_channel_map* pa_channel_map_init_mono(pa_channel_map* m); |
| 20 int pa_context_connect(pa_context* c, const char* server, pa_context_flags_t fla gs, const pa_spawn_api* api); | 20 int pa_context_connect(pa_context* c, const char* server, pa_context_flags_t fla gs, const pa_spawn_api* api); |
| 21 void pa_context_disconnect(pa_context* c); | 21 void pa_context_disconnect(pa_context* c); |
| 22 pa_operation* pa_context_get_server_info(pa_context* c, pa_server_info_cb_t cb, void* userdata); | 22 pa_operation* pa_context_get_server_info(pa_context* c, pa_server_info_cb_t cb, void* userdata); |
| 23 pa_operation* pa_context_get_source_info_by_index(pa_context* c, uint32_t idx, p a_source_info_cb_t cb, void* userdata); | 23 pa_operation* pa_context_get_source_info_by_index(pa_context* c, uint32_t idx, p a_source_info_cb_t cb, void* userdata) |
|
tommi (sloooow) - chröme
2016/08/29 13:02:25
intentionally removing the semicolon?
Max Morin
2016/08/29 14:04:22
Oops.
| |
| 24 pa_operation* pa_context_get_source_info_list(pa_context* c, pa_source_info_cb_t cb, void* userdata); | 24 pa_operation* pa_context_get_source_info_list(pa_context* c, pa_source_info_cb_t cb, void* userdata); |
| 25 pa_operation* pa_context_get_sink_info_list(pa_context* c, pa_sink_info_cb_t cb, void* userdata);» | 25 pa_operation* pa_context_get_sink_info_list(pa_context* c, pa_sink_info_cb_t cb, void* userdata); |
| 26 pa_context_state_t pa_context_get_state(pa_context* c); | 26 pa_context_state_t pa_context_get_state(pa_context* c); |
| 27 pa_context* pa_context_new(pa_mainloop_api* mainloop, const char* name); | 27 pa_context* pa_context_new(pa_mainloop_api* mainloop, const char* name); |
| 28 pa_operation* pa_context_set_source_volume_by_index(pa_context* c, uint32_t idx, const pa_cvolume* volume, pa_context_success_cb_t cb, void* userdata); | 28 pa_operation* pa_context_set_source_volume_by_index(pa_context* c, uint32_t idx, const pa_cvolume* volume, pa_context_success_cb_t cb, void* userdata); |
| 29 void pa_context_set_state_callback(pa_context* c, pa_context_notify_cb_t cb, voi d* userdata); | 29 void pa_context_set_state_callback(pa_context* c, pa_context_notify_cb_t cb, voi d* userdata); |
| 30 pa_operation_state_t pa_operation_get_state(pa_operation* o); | 30 pa_operation_state_t pa_operation_get_state(pa_operation* o); |
| 31 void pa_context_unref(pa_context* c); | 31 void pa_context_unref(pa_context* c); |
| 32 void pa_operation_unref(pa_operation* o); | 32 void pa_operation_unref(pa_operation* o); |
| 33 int pa_stream_begin_write(pa_stream* p, void** data, size_t* nbytes); | 33 int pa_stream_begin_write(pa_stream* p, void** data, size_t* nbytes); |
| 34 int pa_stream_connect_playback(pa_stream* s, const char* dev, const pa_buffer_at tr* attr, pa_stream_flags_t flags, const pa_cvolume* volume,pa_stream* sync_stre am); | 34 int pa_stream_connect_playback(pa_stream* s, const char* dev, const pa_buffer_at tr* attr, pa_stream_flags_t flags, const pa_cvolume* volume,pa_stream* sync_stre am); |
| 35 int pa_stream_connect_record(pa_stream* s, const char* dev, const pa_buffer_attr * attr, pa_stream_flags_t flags); | 35 int pa_stream_connect_record(pa_stream* s, const char* dev, const pa_buffer_attr * attr, pa_stream_flags_t flags); |
| 36 pa_operation* pa_stream_cork(pa_stream* s, int b, pa_stream_success_cb_t cb, voi d* userdata); | 36 pa_operation* pa_stream_cork(pa_stream* s, int b, pa_stream_success_cb_t cb, voi d* userdata); |
| 37 int pa_stream_disconnect(pa_stream* s); | 37 int pa_stream_disconnect(pa_stream* s); |
| 38 int pa_stream_drop(pa_stream *p); | 38 int pa_stream_drop(pa_stream *p); |
| 39 pa_operation* pa_stream_flush(pa_stream* s, pa_stream_success_cb_t cb, void* use rdata); | 39 pa_operation* pa_stream_flush(pa_stream* s, pa_stream_success_cb_t cb, void* use rdata); |
| 40 uint32_t pa_stream_get_device_index(pa_stream* s); | 40 uint32_t pa_stream_get_device_index(pa_stream* s); |
| 41 int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative); | 41 int pa_stream_get_latency(pa_stream* s, pa_usec_t* r_usec, int* negative); |
| 42 pa_stream_state_t pa_stream_get_state(pa_stream* p); | 42 pa_stream_state_t pa_stream_get_state(pa_stream* p); |
| 43 pa_stream* pa_stream_new(pa_context* c, const char* name, const pa_sample_spec * ss, const pa_channel_map * map); | 43 pa_stream* pa_stream_new(pa_context* c, const char* name, const pa_sample_spec * ss, const pa_channel_map * map); |
| 44 pa_stream* pa_stream_new_with_proplist(pa_context* c, const char* name, const pa _sample_spec* ss, const pa_channel_map* map, pa_proplist* p); | 44 pa_stream* pa_stream_new_with_proplist(pa_context* c, const char* name, const pa _sample_spec* ss, const pa_channel_map* map, pa_proplist* p); |
| 45 pa_proplist* pa_proplist_new(void); | 45 pa_proplist* pa_proplist_new(void); |
| 46 int pa_proplist_contains (pa_proplist* p, const char* key); | |
|
tommi (sloooow) - chröme
2016/08/29 13:02:25
remove space before (
Max Morin
2016/08/29 14:04:22
Done.
| |
| 46 void pa_proplist_free(pa_proplist* p); | 47 void pa_proplist_free(pa_proplist* p); |
| 48 const char* pa_proplist_gets (pa_proplist* p, const char* key); | |
|
tommi (sloooow) - chröme
2016/08/29 13:02:25
same here
Max Morin
2016/08/29 14:04:22
Done.
| |
| 47 int pa_proplist_sets(pa_proplist* p, const char* key, const char* value); | 49 int pa_proplist_sets(pa_proplist* p, const char* key, const char* value); |
| 48 size_t pa_stream_readable_size(pa_stream *p); | 50 size_t pa_stream_readable_size(pa_stream *p); |
| 49 int pa_stream_peek(pa_stream* p, const void** data, size_t* nbytes); | 51 int pa_stream_peek(pa_stream* p, const void** data, size_t* nbytes); |
| 50 void pa_stream_set_read_callback(pa_stream* p, pa_stream_request_cb_t cb, void* userdata); | 52 void pa_stream_set_read_callback(pa_stream* p, pa_stream_request_cb_t cb, void* userdata); |
| 51 void pa_stream_set_state_callback(pa_stream* s, pa_stream_notify_cb_t cb, void* userdata); | 53 void pa_stream_set_state_callback(pa_stream* s, pa_stream_notify_cb_t cb, void* userdata); |
| 52 int pa_stream_write(pa_stream* p, const void* data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek); | 54 int pa_stream_write(pa_stream* p, const void* data, size_t nbytes, pa_free_cb_t free_cb, int64_t offset, pa_seek_mode_t seek); |
| 53 void pa_stream_set_write_callback(pa_stream *p, pa_stream_request_cb_t cb, void *userdata); | 55 void pa_stream_set_write_callback(pa_stream *p, pa_stream_request_cb_t cb, void *userdata); |
| 54 void pa_stream_unref(pa_stream* s); | 56 void pa_stream_unref(pa_stream* s); |
| 55 int pa_context_errno(pa_context *c); | 57 int pa_context_errno(pa_context *c); |
| 56 const char* pa_strerror(int error); | 58 const char* pa_strerror(int error); |
| 57 pa_cvolume* pa_cvolume_set(pa_cvolume* a, unsigned channels, pa_volume_t v); | 59 pa_cvolume* pa_cvolume_set(pa_cvolume* a, unsigned channels, pa_volume_t v); |
| OLD | NEW |