Changeset 89d3946f in mainline for uspace/lib/hound/include/hound/client.h
- Timestamp:
- 2013-03-16T23:46:59Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- abaef81
- Parents:
- 6b0cfa1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/include/hound/client.h
r6b0cfa1 r89d3946f 44 44 #define DEFAULT_SOURCE "default" 45 45 46 typedef struct hound_context hound_context_t; 47 typedef struct hound_stream hound_stream_t; 48 49 hound_context_t * hound_context_create_playback(const char *name, 50 unsigned channels, unsigned rate, pcm_sample_format_t format, size_t bsize); 51 hound_context_t * hound_context_create_capture(const char *name, 52 unsigned channels, unsigned rate, pcm_sample_format_t format, size_t bsize); 53 void hound_context_destroy(hound_context_t *hound); 54 55 int hound_context_enable(hound_context_t *hound); 56 int hound_context_disable(hound_context_t *hound); 57 58 int hound_context_set_main_stream_format(hound_context_t *hound, 59 unsigned channels, unsigned rate, pcm_sample_format_t format); 60 int hound_get_output_targets(const char **names, size_t *count); 61 int hound_get_input_targets(const char **names, size_t *count); 62 63 int hound_context_connect_target(hound_context_t *hound, const char* target); 64 int hound_context_disconnect_target(hound_context_t *hound, const char* target); 65 66 int hound_write_main_stream(hound_context_t *hound, 67 const void *data, size_t size); 68 int hound_read_main_stream(hound_context_t *hound, void *data, size_t size); 69 int hound_write_replace_main_stream(hound_context_t *hound, 70 const void *data, size_t size); 71 int hound_write_immediate_stream(hound_context_t *hound, 72 const void *data, size_t size); 73 74 hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags, 75 unsigned channels, unsigned rate, pcm_sample_format_t format); 76 void hound_stream_destroy(hound_stream_t *stream); 77 78 int hound_stream_write(hound_stream_t *stream, const void *data, size_t size); 79 int hound_stream_read(hound_stream_t *stream, void *data, size_t size); 80 81 82 83 84 46 85 typedef async_sess_t hound_sess_t; 47 86
Note:
See TracChangeset
for help on using the changeset viewer.