Changes in uspace/srv/audio/hound/connection.c [541eb67:bee5349] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/connection.c
r541eb67 rbee5349 34 34 */ 35 35 36 #include <malloc.h> 36 37 #include <errno.h> 37 #include <stdlib.h>38 38 39 39 #include "log.h" … … 101 101 * @param format format of the destination audio buffer. 102 102 */ 103 int connection_add_source_data(connection_t *connection, void *data,103 ssize_t connection_add_source_data(connection_t *connection, void *data, 104 104 size_t size, pcm_format_t format) 105 105 { … … 116 116 log_verbose("Data available after update: %zu", 117 117 audio_pipe_bytes(&connection->fifo)); 118 s ize_t ret =118 ssize_t ret = 119 119 audio_pipe_mix_data(&connection->fifo, data, size, &format); 120 if (ret != size)120 if (ret != (ssize_t)size) 121 121 log_warning("Connection failed to provide enough data %zd/%zu", 122 122 ret, size); 123 return EOK;123 return ret > 0 ? EOK : ret; 124 124 } 125 125 /**
Note:
See TracChangeset
for help on using the changeset viewer.