Changeset 3bacee1 in mainline for uspace/srv/audio
- Timestamp:
- 2018-04-12T16:27:17Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- Location:
- uspace/srv/audio/hound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_data.c
r76d0981d r3bacee1 103 103 * @return valid pointer to data link structure, NULL on failure. 104 104 */ 105 static inline audio_data_link_t * 105 static inline audio_data_link_t *audio_data_link_list_instance(link_t *l) 106 106 { 107 107 return l ? list_get_instance(l, audio_data_link_t, link) : NULL; … … 144 144 * @return pointer to the beginning of data buffer. 145 145 */ 146 static inline const void * 146 static inline const void *audio_data_link_start(audio_data_link_t *alink) 147 147 { 148 148 assert(alink); -
uspace/srv/audio/hound/hound_ctx.c
r76d0981d r3bacee1 209 209 fibril_mutex_lock(&stream->guard); 210 210 if (stream->allowed_size && 211 (audio_pipe_bytes(&stream->fifo) + adata->size 212 >stream->allowed_size)) {211 (audio_pipe_bytes(&stream->fifo) + adata->size > 212 stream->allowed_size)) { 213 213 fibril_mutex_unlock(&stream->guard); 214 214 return EOVERFLOW; … … 246 246 */ 247 247 hound_ctx_stream_t *hound_ctx_create_stream(hound_ctx_t *ctx, int flags, 248 248 pcm_format_t format, size_t buffer_size) 249 249 { 250 250 assert(ctx); … … 308 308 while (stream->allowed_size && 309 309 (audio_pipe_bytes(&stream->fifo) + size > stream->allowed_size)) { 310 310 fibril_condvar_wait(&stream->change, &stream->guard); 311 311 312 312 } … … 336 336 fibril_mutex_lock(&stream->guard); 337 337 while (audio_pipe_bytes(&stream->fifo) < size) { 338 338 fibril_condvar_wait(&stream->change, &stream->guard); 339 339 } 340 340 … … 466 466 if (ret != EOK) 467 467 log_error("Failed to push data to stream: %s", 468 468 str_error(ret)); 469 469 } 470 470 audio_data_unref(adata);
Note:
See TracChangeset
for help on using the changeset viewer.