Changeset 67952 in vbox
- Timestamp:
- Jul 13, 2017 10:33:25 AM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
-
pulse_mangling.h (modified) (3 diffs)
-
pulse_stubs.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/pulse_mangling.h
r67951 r67952 22 22 #define PULSE_MANGLER(symbol) VBox_##symbol 23 23 24 #define pa_bytes_per_second PULSE_MANGLER(pa_bytes_per_second) 25 #define pa_bytes_to_usec PULSE_MANGLER(pa_bytes_to_usec) 26 #define pa_channel_map_init_auto PULSE_MANGLER(pa_channel_map_init_auto) 27 28 #define pa_context_connect PULSE_MANGLER(pa_context_connect) 29 #define pa_context_disconnect PULSE_MANGLER(pa_context_disconnect) 30 #define pa_context_get_server_info PULSE_MANGLER(pa_context_get_server_info) 31 #define pa_context_get_sink_info_by_name PULSE_MANGLER(pa_context_get_sink_info_by_name) 32 #define pa_context_get_source_info_by_name PULSE_MANGLER(pa_context_get_source_info_by_name) 33 #define pa_context_get_state PULSE_MANGLER(pa_context_get_state) 34 #define pa_context_unref PULSE_MANGLER(pa_context_unref) 35 #define pa_context_errno PULSE_MANGLER(pa_context_errno) 36 #define pa_context_new PULSE_MANGLER(pa_context_new) 37 #define pa_context_set_state_callback PULSE_MANGLER(pa_context_set_state_callback) 38 39 #define pa_frame_size PULSE_MANGLER(pa_frame_size) 40 #define pa_operation_unref PULSE_MANGLER(pa_operation_unref) 41 #define pa_operation_get_state PULSE_MANGLER(pa_operation_get_state) 42 #define pa_operation_cancel PULSE_MANGLER(pa_operation_cancel) 43 #define pa_rtclock_now PULSE_MANGLER(pa_rtclock_now) 44 #define pa_sample_format_to_string PULSE_MANGLER(pa_sample_format_to_string) 45 #define pa_sample_spec_valid PULSE_MANGLER(pa_sample_spec_valid) 46 24 47 #define pa_stream_connect_playback PULSE_MANGLER(pa_stream_connect_playback) 25 48 #define pa_stream_connect_record PULSE_MANGLER(pa_stream_connect_record) 49 #define pa_stream_cork PULSE_MANGLER(pa_stream_cork) 26 50 #define pa_stream_disconnect PULSE_MANGLER(pa_stream_disconnect) 51 #define pa_stream_drop PULSE_MANGLER(pa_stream_drop) 27 52 #define pa_stream_get_sample_spec PULSE_MANGLER(pa_stream_get_sample_spec) 28 53 #define pa_stream_set_latency_update_callback PULSE_MANGLER(pa_stream_set_latency_update_callback) … … 42 67 #define pa_stream_get_buffer_attr PULSE_MANGLER(pa_stream_get_buffer_attr) 43 68 #define pa_stream_peek PULSE_MANGLER(pa_stream_peek) 44 #define pa_stream_cork PULSE_MANGLER(pa_stream_cork) 45 #define pa_stream_drop PULSE_MANGLER(pa_stream_drop) 69 #define pa_stream_readable_size PULSE_MANGLER(pa_stream_readable_size) 46 70 #define pa_stream_writable_size PULSE_MANGLER(pa_stream_writable_size) 47 #define pa_context_connect PULSE_MANGLER(pa_context_connect) 48 #define pa_context_disconnect PULSE_MANGLER(pa_context_disconnect) 49 #define pa_context_get_server_info PULSE_MANGLER(pa_context_get_server_info) 50 #define pa_context_get_sink_info_by_name PULSE_MANGLER(pa_context_get_sink_info_by_name) 51 #define pa_context_get_source_info_by_name PULSE_MANGLER(pa_context_get_source_info_by_name) 52 #define pa_context_get_state PULSE_MANGLER(pa_context_get_state) 53 #define pa_context_unref PULSE_MANGLER(pa_context_unref) 54 #define pa_context_errno PULSE_MANGLER(pa_context_errno) 55 #define pa_context_new PULSE_MANGLER(pa_context_new) 56 #define pa_context_set_state_callback PULSE_MANGLER(pa_context_set_state_callback) 71 72 #define pa_strerror PULSE_MANGLER(pa_strerror) 73 57 74 #define pa_threaded_mainloop_stop PULSE_MANGLER(pa_threaded_mainloop_stop) 58 75 #define pa_threaded_mainloop_get_api PULSE_MANGLER(pa_threaded_mainloop_get_api) … … 64 81 #define pa_threaded_mainloop_start PULSE_MANGLER(pa_threaded_mainloop_start) 65 82 #define pa_threaded_mainloop_lock PULSE_MANGLER(pa_threaded_mainloop_lock) 66 #define pa_bytes_per_second PULSE_MANGLER(pa_bytes_per_second) 67 #define pa_bytes_to_usec PULSE_MANGLER(pa_bytes_to_usec) 83 68 84 #define pa_usec_to_bytes PULSE_MANGLER(pa_usec_to_bytes) 69 #define pa_rtclock_now PULSE_MANGLER(pa_rtclock_now)70 #define pa_frame_size PULSE_MANGLER(pa_frame_size)71 #define pa_sample_format_to_string PULSE_MANGLER(pa_sample_format_to_string)72 #define pa_sample_spec_valid PULSE_MANGLER(pa_sample_spec_valid)73 #define pa_channel_map_init_auto PULSE_MANGLER(pa_channel_map_init_auto)74 #define pa_operation_unref PULSE_MANGLER(pa_operation_unref)75 #define pa_operation_get_state PULSE_MANGLER(pa_operation_get_state)76 #define pa_operation_cancel PULSE_MANGLER(pa_operation_cancel)77 #define pa_strerror PULSE_MANGLER(pa_strerror)78 #define pa_stream_readable_size PULSE_MANGLER(pa_stream_readable_size)79 85 80 86 #endif /* !AUDIO_PULSE_MANGLING_H */ -
trunk/src/VBox/Devices/Audio/pulse_stubs.c
r67951 r67952 45 45 } 46 46 47 #if PA_PROTOCOL_VERSION >= 16 48 PROXY_STUB (pa_stream_connect_playback, int, 49 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 50 pa_stream_flags_t flags, const pa_cvolume *volume, pa_stream *sync_stream), 51 (s, dev, attr, flags, volume, sync_stream)) 52 #else 53 PROXY_STUB (pa_stream_connect_playback, int, 54 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 55 pa_stream_flags_t flags, pa_cvolume *volume, pa_stream *sync_stream), 56 (s, dev, attr, flags, volume, sync_stream)) 57 #endif 58 PROXY_STUB (pa_stream_connect_record, int, 59 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 60 pa_stream_flags_t flags), 61 (s, dev, attr, flags)) 62 PROXY_STUB (pa_stream_disconnect, int, 63 (pa_stream *s), 64 (s)) 65 PROXY_STUB (pa_stream_get_sample_spec, const pa_sample_spec*, 66 (pa_stream *s), 67 (s)) 68 PROXY_STUB_VOID(pa_stream_set_latency_update_callback, 69 (pa_stream *p, pa_stream_notify_cb_t cb, void *userdata), 70 (p, cb, userdata)) 71 PROXY_STUB (pa_stream_write, int, 72 (pa_stream *p, const void *data, size_t bytes, pa_free_cb_t free_cb, 73 int64_t offset, pa_seek_mode_t seek), 74 (p, data, bytes, free_cb, offset, seek)) 75 PROXY_STUB_VOID(pa_stream_unref, 76 (pa_stream *s), 77 (s)) 78 PROXY_STUB (pa_stream_get_state, pa_stream_state_t, 79 (pa_stream *p), 80 (p)) 81 PROXY_STUB (pa_stream_get_latency, int, 82 (pa_stream *s, pa_usec_t *r_usec, int *negative), 83 (s, r_usec, negative)) 84 PROXY_STUB (pa_stream_get_timing_info, pa_timing_info*, 85 (pa_stream *s), 86 (s)) 87 PROXY_STUB (pa_stream_set_buffer_attr, pa_operation *, 88 (pa_stream *s, const pa_buffer_attr *attr, pa_stream_success_cb_t cb, void *userdata), 89 (s, attr, cb, userdata)) 90 PROXY_STUB_VOID(pa_stream_set_state_callback, 91 (pa_stream *s, pa_stream_notify_cb_t cb, void *userdata), 92 (s, cb, userdata)) 93 PROXY_STUB_VOID(pa_stream_set_underflow_callback, 94 (pa_stream *s, pa_stream_notify_cb_t cb, void *userdata), 95 (s, cb, userdata)) 96 PROXY_STUB_VOID(pa_stream_set_write_callback, 97 (pa_stream *s, pa_stream_request_cb_t cb, void *userdata), 98 (s, cb, userdata)) 99 PROXY_STUB (pa_stream_flush, pa_operation*, 100 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 101 (s, cb, userdata)) 102 PROXY_STUB (pa_stream_drain, pa_operation*, 103 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 104 (s, cb, userdata)) 105 PROXY_STUB (pa_stream_trigger, pa_operation*, 106 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 107 (s, cb, userdata)) 108 PROXY_STUB (pa_stream_new, pa_stream*, 109 (pa_context *c, const char *name, const pa_sample_spec *ss, 110 const pa_channel_map *map), 111 (c, name, ss, map)) 112 PROXY_STUB (pa_stream_get_buffer_attr, const pa_buffer_attr*, 113 (pa_stream *s), 114 (s)) 115 PROXY_STUB (pa_stream_peek, int, 116 (pa_stream *p, const void **data, size_t *bytes), 117 (p, data, bytes)) 118 PROXY_STUB (pa_stream_cork, pa_operation*, 119 (pa_stream *s, int b, pa_stream_success_cb_t cb, void *userdata), 120 (s, b, cb, userdata)) 121 PROXY_STUB (pa_stream_drop, int, 122 (pa_stream *p), 123 (p)) 124 PROXY_STUB (pa_stream_writable_size, size_t, 125 (pa_stream *p), 126 (p)) 47 PROXY_STUB (pa_bytes_per_second, size_t, 48 (const pa_sample_spec *spec), 49 (spec)) 50 PROXY_STUB (pa_bytes_to_usec, pa_usec_t, 51 (uint64_t l, const pa_sample_spec *spec), 52 (l, spec)) 53 PROXY_STUB (pa_channel_map_init_auto, pa_channel_map*, 54 (pa_channel_map *m, unsigned channels, pa_channel_map_def_t def), 55 (m, channels, def)) 56 127 57 PROXY_STUB (pa_context_connect, int, 128 58 (pa_context *c, const char *server, pa_context_flags_t flags, … … 156 86 (pa_context *c, pa_context_notify_cb_t cb, void *userdata), 157 87 (c, cb, userdata)) 158 PROXY_STUB_VOID(pa_threaded_mainloop_stop, 159 (pa_threaded_mainloop *m), 160 (m)) 161 PROXY_STUB (pa_threaded_mainloop_get_api, pa_mainloop_api*, 162 (pa_threaded_mainloop *m), 163 (m)) 164 PROXY_STUB_VOID(pa_threaded_mainloop_free, 165 (pa_threaded_mainloop* m), 166 (m)) 167 PROXY_STUB_VOID(pa_threaded_mainloop_signal, 168 (pa_threaded_mainloop *m, int wait_for_accept), 169 (m, wait_for_accept)) 170 PROXY_STUB_VOID(pa_threaded_mainloop_unlock, 171 (pa_threaded_mainloop *m), 172 (m)) 173 PROXY_STUB (pa_threaded_mainloop_new, pa_threaded_mainloop *, 174 (void), 175 ()) 176 PROXY_STUB_VOID(pa_threaded_mainloop_wait, 177 (pa_threaded_mainloop *m), 178 (m)) 179 PROXY_STUB (pa_threaded_mainloop_start, int, 180 (pa_threaded_mainloop *m), 181 (m)) 182 PROXY_STUB_VOID(pa_threaded_mainloop_lock, 183 (pa_threaded_mainloop *m), 184 (m)) 185 PROXY_STUB (pa_bytes_per_second, size_t, 186 (const pa_sample_spec *spec), 187 (spec)) 188 PROXY_STUB (pa_bytes_to_usec, pa_usec_t, 189 (uint64_t l, const pa_sample_spec *spec), 190 (l, spec)) 191 PROXY_STUB (pa_usec_to_bytes, size_t, 192 (pa_usec_t t, const pa_sample_spec *spec), 193 (t, spec)) 194 PROXY_STUB (pa_rtclock_now, pa_usec_t, 195 (void), 196 ()) 88 89 197 90 PROXY_STUB (pa_frame_size, size_t, 198 91 (const pa_sample_spec *spec), 199 92 (spec)) 200 PROXY_STUB (pa_sample_format_to_string, const char*,201 (pa_sample_format_t f),202 (f))203 PROXY_STUB (pa_sample_spec_valid, int,204 (const pa_sample_spec *spec),205 (spec))206 PROXY_STUB (pa_channel_map_init_auto, pa_channel_map*,207 (pa_channel_map *m, unsigned channels, pa_channel_map_def_t def),208 (m, channels, def))209 93 PROXY_STUB_VOID(pa_operation_unref, 210 94 (pa_operation *o), … … 216 100 (pa_operation *o), 217 101 (o)) 102 103 PROXY_STUB (pa_rtclock_now, pa_usec_t, 104 (void), 105 ()) 106 PROXY_STUB (pa_sample_format_to_string, const char*, 107 (pa_sample_format_t f), 108 (f)) 109 PROXY_STUB (pa_sample_spec_valid, int, 110 (const pa_sample_spec *spec), 111 (spec)) 218 112 PROXY_STUB (pa_strerror, const char*, 219 113 (int error), 220 114 (error)) 115 116 #if PA_PROTOCOL_VERSION >= 16 117 PROXY_STUB (pa_stream_connect_playback, int, 118 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 119 pa_stream_flags_t flags, const pa_cvolume *volume, pa_stream *sync_stream), 120 (s, dev, attr, flags, volume, sync_stream)) 121 #else 122 PROXY_STUB (pa_stream_connect_playback, int, 123 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 124 pa_stream_flags_t flags, pa_cvolume *volume, pa_stream *sync_stream), 125 (s, dev, attr, flags, volume, sync_stream)) 126 #endif 127 PROXY_STUB (pa_stream_connect_record, int, 128 (pa_stream *s, const char *dev, const pa_buffer_attr *attr, 129 pa_stream_flags_t flags), 130 (s, dev, attr, flags)) 131 PROXY_STUB (pa_stream_disconnect, int, 132 (pa_stream *s), 133 (s)) 134 PROXY_STUB (pa_stream_get_sample_spec, const pa_sample_spec*, 135 (pa_stream *s), 136 (s)) 137 PROXY_STUB_VOID(pa_stream_set_latency_update_callback, 138 (pa_stream *p, pa_stream_notify_cb_t cb, void *userdata), 139 (p, cb, userdata)) 140 PROXY_STUB (pa_stream_write, int, 141 (pa_stream *p, const void *data, size_t bytes, pa_free_cb_t free_cb, 142 int64_t offset, pa_seek_mode_t seek), 143 (p, data, bytes, free_cb, offset, seek)) 144 PROXY_STUB_VOID(pa_stream_unref, 145 (pa_stream *s), 146 (s)) 147 PROXY_STUB (pa_stream_get_state, pa_stream_state_t, 148 (pa_stream *p), 149 (p)) 150 PROXY_STUB (pa_stream_get_latency, int, 151 (pa_stream *s, pa_usec_t *r_usec, int *negative), 152 (s, r_usec, negative)) 153 PROXY_STUB (pa_stream_get_timing_info, pa_timing_info*, 154 (pa_stream *s), 155 (s)) 221 156 PROXY_STUB (pa_stream_readable_size, size_t, 222 157 (pa_stream *p), 223 158 (p)) 224 159 PROXY_STUB (pa_stream_set_buffer_attr, pa_operation *, 160 (pa_stream *s, const pa_buffer_attr *attr, pa_stream_success_cb_t cb, void *userdata), 161 (s, attr, cb, userdata)) 162 PROXY_STUB_VOID(pa_stream_set_state_callback, 163 (pa_stream *s, pa_stream_notify_cb_t cb, void *userdata), 164 (s, cb, userdata)) 165 PROXY_STUB_VOID(pa_stream_set_underflow_callback, 166 (pa_stream *s, pa_stream_notify_cb_t cb, void *userdata), 167 (s, cb, userdata)) 168 PROXY_STUB_VOID(pa_stream_set_write_callback, 169 (pa_stream *s, pa_stream_request_cb_t cb, void *userdata), 170 (s, cb, userdata)) 171 PROXY_STUB (pa_stream_flush, pa_operation*, 172 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 173 (s, cb, userdata)) 174 PROXY_STUB (pa_stream_drain, pa_operation*, 175 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 176 (s, cb, userdata)) 177 PROXY_STUB (pa_stream_trigger, pa_operation*, 178 (pa_stream *s, pa_stream_success_cb_t cb, void *userdata), 179 (s, cb, userdata)) 180 PROXY_STUB (pa_stream_new, pa_stream*, 181 (pa_context *c, const char *name, const pa_sample_spec *ss, 182 const pa_channel_map *map), 183 (c, name, ss, map)) 184 PROXY_STUB (pa_stream_get_buffer_attr, const pa_buffer_attr*, 185 (pa_stream *s), 186 (s)) 187 PROXY_STUB (pa_stream_peek, int, 188 (pa_stream *p, const void **data, size_t *bytes), 189 (p, data, bytes)) 190 PROXY_STUB (pa_stream_cork, pa_operation*, 191 (pa_stream *s, int b, pa_stream_success_cb_t cb, void *userdata), 192 (s, b, cb, userdata)) 193 PROXY_STUB (pa_stream_drop, int, 194 (pa_stream *p), 195 (p)) 196 PROXY_STUB (pa_stream_writable_size, size_t, 197 (pa_stream *p), 198 (p)) 199 200 PROXY_STUB_VOID(pa_threaded_mainloop_stop, 201 (pa_threaded_mainloop *m), 202 (m)) 203 PROXY_STUB (pa_threaded_mainloop_get_api, pa_mainloop_api*, 204 (pa_threaded_mainloop *m), 205 (m)) 206 PROXY_STUB_VOID(pa_threaded_mainloop_free, 207 (pa_threaded_mainloop* m), 208 (m)) 209 PROXY_STUB_VOID(pa_threaded_mainloop_signal, 210 (pa_threaded_mainloop *m, int wait_for_accept), 211 (m, wait_for_accept)) 212 PROXY_STUB_VOID(pa_threaded_mainloop_unlock, 213 (pa_threaded_mainloop *m), 214 (m)) 215 PROXY_STUB (pa_threaded_mainloop_new, pa_threaded_mainloop *, 216 (void), 217 ()) 218 PROXY_STUB_VOID(pa_threaded_mainloop_wait, 219 (pa_threaded_mainloop *m), 220 (m)) 221 PROXY_STUB (pa_threaded_mainloop_start, int, 222 (pa_threaded_mainloop *m), 223 (m)) 224 PROXY_STUB_VOID(pa_threaded_mainloop_lock, 225 (pa_threaded_mainloop *m), 226 (m)) 227 228 PROXY_STUB (pa_usec_to_bytes, size_t, 229 (pa_usec_t t, const pa_sample_spec *spec), 230 (t, spec)) 225 231 226 232 typedef struct … … 233 239 static SHARED_FUNC SharedFuncs[] = 234 240 { 241 ELEMENT(pa_bytes_per_second), 242 ELEMENT(pa_bytes_to_usec), 243 ELEMENT(pa_channel_map_init_auto), 244 245 ELEMENT(pa_context_connect), 246 ELEMENT(pa_context_disconnect), 247 ELEMENT(pa_context_get_server_info), 248 ELEMENT(pa_context_get_sink_info_by_name), 249 ELEMENT(pa_context_get_source_info_by_name), 250 ELEMENT(pa_context_get_state), 251 ELEMENT(pa_context_unref), 252 ELEMENT(pa_context_errno), 253 ELEMENT(pa_context_new), 254 ELEMENT(pa_context_set_state_callback), 255 256 ELEMENT(pa_frame_size), 257 ELEMENT(pa_operation_unref), 258 ELEMENT(pa_operation_get_state), 259 ELEMENT(pa_operation_cancel), 260 ELEMENT(pa_rtclock_now), 261 ELEMENT(pa_sample_format_to_string), 262 ELEMENT(pa_sample_spec_valid), 263 ELEMENT(pa_strerror), 264 235 265 ELEMENT(pa_stream_connect_playback), 236 266 ELEMENT(pa_stream_connect_record), … … 243 273 ELEMENT(pa_stream_get_latency), 244 274 ELEMENT(pa_stream_get_timing_info), 275 ELEMENT(pa_stream_readable_size), 245 276 ELEMENT(pa_stream_set_buffer_attr), 246 277 ELEMENT(pa_stream_set_state_callback), … … 256 287 ELEMENT(pa_stream_drop), 257 288 ELEMENT(pa_stream_writable_size), 258 ELEMENT(pa_context_connect), 259 ELEMENT(pa_context_disconnect), 260 ELEMENT(pa_context_get_server_info), 261 ELEMENT(pa_context_get_sink_info_by_name), 262 ELEMENT(pa_context_get_source_info_by_name), 263 ELEMENT(pa_context_get_state), 264 ELEMENT(pa_context_unref), 265 ELEMENT(pa_context_errno), 266 ELEMENT(pa_context_new), 267 ELEMENT(pa_context_set_state_callback), 289 268 290 ELEMENT(pa_threaded_mainloop_stop), 269 291 ELEMENT(pa_threaded_mainloop_get_api), … … 275 297 ELEMENT(pa_threaded_mainloop_start), 276 298 ELEMENT(pa_threaded_mainloop_lock), 277 ELEMENT(pa_bytes_per_second), 278 ELEMENT(pa_bytes_to_usec), 279 ELEMENT(pa_usec_to_bytes), 280 ELEMENT(pa_rtclock_now), 281 ELEMENT(pa_frame_size), 282 ELEMENT(pa_sample_format_to_string), 283 ELEMENT(pa_sample_spec_valid), 284 ELEMENT(pa_channel_map_init_auto), 285 ELEMENT(pa_operation_unref), 286 ELEMENT(pa_operation_get_state), 287 ELEMENT(pa_operation_cancel), 288 ELEMENT(pa_strerror), 289 ELEMENT(pa_stream_readable_size) 299 300 ELEMENT(pa_usec_to_bytes) 290 301 }; 291 302 #undef ELEMENT
Note:
See TracChangeset
for help on using the changeset viewer.

