Changeset 23878dc in mainline
- Timestamp:
- 2013-04-04T12:35:05Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 76ea1b7
- Parents:
- bf13c9a4
- Location:
- uspace/srv/audio/hound
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/hound_ctx.c
rbf13c9a4 r23878dc 38 38 39 39 #include "hound_ctx.h" 40 #include "audio_data.h" 40 41 #include "log.h" 41 42 … … 97 98 * STREAMS 98 99 */ 100 typedef struct hound_ctx_stream { 101 link_t link; 102 list_t fifo; 103 hound_ctx_t *ctx; 104 pcm_format_t format; 105 int flags; 106 size_t allowed_size; 107 size_t current_size; 108 } hound_ctx_stream_t; 99 109 100 typedef struct { 101 const void *data; 102 size_t size; 103 link_t link; 104 } audio_data_t; 105 106 static inline audio_data_t * audio_data_list_instance(link_t *l) 110 static inline hound_ctx_stream_t *hound_ctx_stream_from_link(link_t *l) 107 111 { 108 return l ? list_get_instance(l, audio_data_t, link) : NULL;112 return l ? list_get_instance(l, hound_ctx_stream_t, link) : NULL; 109 113 } 110 114 -
uspace/srv/audio/hound/hound_ctx.h
rbf13c9a4 r23878dc 54 54 } 55 55 56 typedef struct { 57 link_t link; 58 list_t fifo; 59 hound_ctx_t *ctx; 60 pcm_format_t format; 61 int flags; 62 size_t allowed_size; 63 size_t current_size; 64 } hound_ctx_stream_t; 65 66 static inline hound_ctx_stream_t *hound_ctx_stream_from_link(link_t *l) 67 { 68 return l ? list_get_instance(l, hound_ctx_stream_t, link) : NULL; 69 } 56 typedef struct hound_ctx_stream hound_ctx_stream_t; 70 57 71 58 … … 90 77 * @} 91 78 */ 92
Note:
See TracChangeset
for help on using the changeset viewer.