Changeset 3bacee1 in mainline for uspace/srv/audio/hound/hound_ctx.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.