Changeset 1433ecda in mainline for uspace/lib/hound/src
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/src/client.c
r47b2d7e3 r1433ecda 66 66 * @return hound stream isntance. 67 67 */ 68 static inline hound_stream_t * 68 static inline hound_stream_t *hound_stream_from_link(link_t *l) 69 69 { 70 70 return l ? list_get_instance(l, hound_stream_t, link) : NULL; … … 143 143 * @return valid pointer to initialized structure on success, NULL on failure 144 144 */ 145 hound_context_t * 145 hound_context_t *hound_context_create_playback(const char *name, 146 146 pcm_format_t format, size_t bsize) 147 147 { … … 156 156 * @return valid pointer to initialized structure on success, NULL on failure 157 157 */ 158 hound_context_t * 158 hound_context_t *hound_context_create_capture(const char *name, 159 159 pcm_format_t format, size_t bsize) 160 160 { … … 220 220 return hound_service_get_list(hound->session, names, count, 221 221 HOUND_CONNECTED | (hound->record ? 222 222 HOUND_SOURCE_DEVS : HOUND_SINK_DEVS), hound->name); 223 223 } 224 224 … … 232 232 * connect to the first possible target if it is passed this value. 233 233 */ 234 errno_t hound_context_connect_target(hound_context_t *hound, const char *target)234 errno_t hound_context_connect_target(hound_context_t *hound, const char *target) 235 235 { 236 236 assert(hound); … … 269 269 * @return Error code. 270 270 */ 271 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target)271 errno_t hound_context_disconnect_target(hound_context_t *hound, const char *target) 272 272 { 273 273 assert(hound); … … 385 385 * if it exists. 386 386 */ 387 static hound_stream_t * 387 static hound_stream_t *hound_get_main_stream(hound_context_t *hound) 388 388 { 389 389 assert(hound); 390 390 if (!hound->main.stream) 391 391 hound->main.stream = hound_stream_create(hound, 392 HOUND_STREAM_DRAIN_ON_EXIT, hound->main.format,392 HOUND_STREAM_DRAIN_ON_EXIT, hound->main.format, 393 393 hound->main.bsize); 394 394 return hound->main.stream;
Note:
See TracChangeset
for help on using the changeset viewer.