Changeset 902dd4b in mainline
- Timestamp:
- 2018-04-15T19:21:10Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30e9f42, cbc534c
- Parents:
- 2ee0e4a1
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:20:12)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-15 19:21:10)
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/hound/include/hound/protocol.h
r2ee0e4a1 r902dd4b 119 119 errno_t (*drain_stream)(void *); 120 120 /** Write new data to the stream */ 121 errno_t (*stream_data_write)(void *, constvoid *, size_t);121 errno_t (*stream_data_write)(void *, void *, size_t); 122 122 /** Read data from the stream */ 123 123 errno_t (*stream_data_read)(void *, void *, size_t); -
uspace/srv/audio/hound/audio_data.c
r2ee0e4a1 r902dd4b 42 42 /** 43 43 * Create reference counted buffer out of ordinary data buffer. 44 * @param data audio buffer 44 * @param data audio buffer. The memory passed will be freed eventually. 45 45 * @param size Size of the @p data buffer. 46 * @param fo mart audio data format.46 * @param format audio data format. 47 47 * @return pointer to valid audio data structure, NULL on failure. 48 48 */ 49 audio_data_t *audio_data_create( constvoid *data, size_t size,49 audio_data_t *audio_data_create(void *data, size_t size, 50 50 pcm_format_t format) 51 51 { … … 85 85 atomic_count_t refc = atomic_predec(&adata->refcount); 86 86 if (refc == 0) { 87 free( (void *)adata->data);87 free(adata->data); 88 88 free(adata); 89 89 } -
uspace/srv/audio/hound/audio_data.h
r2ee0e4a1 r902dd4b 46 46 typedef struct { 47 47 /** Audio data */ 48 constvoid *data;48 void *data; 49 49 /** Size of the buffer pointer to by data */ 50 50 size_t size; … … 67 67 } audio_pipe_t; 68 68 69 audio_data_t *audio_data_create( constvoid *data, size_t size,69 audio_data_t *audio_data_create(void *data, size_t size, 70 70 pcm_format_t format); 71 71 void audio_data_addref(audio_data_t *adata); … … 114 114 */ 115 115 static inline errno_t audio_pipe_push_data(audio_pipe_t *pipe, 116 constvoid *data, size_t size, pcm_format_t f)116 void *data, size_t size, pcm_format_t f) 117 117 { 118 118 audio_data_t *adata = audio_data_create(data, size, f); -
uspace/srv/audio/hound/hound_ctx.c
r2ee0e4a1 r902dd4b 297 297 * @return Error code. 298 298 */ 299 errno_t hound_ctx_stream_write(hound_ctx_stream_t *stream, constvoid *data,299 errno_t hound_ctx_stream_write(hound_ctx_stream_t *stream, void *data, 300 300 size_t size) 301 301 { -
uspace/srv/audio/hound/hound_ctx.h
r2ee0e4a1 r902dd4b 72 72 void hound_ctx_destroy_stream(hound_ctx_stream_t *stream); 73 73 74 errno_t hound_ctx_stream_write(hound_ctx_stream_t *stream, constvoid *buffer,74 errno_t hound_ctx_stream_write(hound_ctx_stream_t *stream, void *buffer, 75 75 size_t size); 76 76 errno_t hound_ctx_stream_read(hound_ctx_stream_t *stream, void *buffer, size_t size); -
uspace/srv/audio/hound/iface.c
r2ee0e4a1 r902dd4b 147 147 } 148 148 149 static errno_t iface_stream_data_write(void *stream, constvoid *buffer, size_t size)149 static errno_t iface_stream_data_write(void *stream, void *buffer, size_t size) 150 150 { 151 151 return hound_ctx_stream_write(stream, buffer, size);
Note:
See TracChangeset
for help on using the changeset viewer.