Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/connection.c

    r38d150e rb7fd2a0  
    101101 * @param format format of the destination audio buffer.
    102102 */
    103 ssize_t connection_add_source_data(connection_t *connection, void *data,
     103errno_t connection_add_source_data(connection_t *connection, void *data,
    104104    size_t size, pcm_format_t format)
    105105{
     
    116116        log_verbose("Data available after update: %zu",
    117117            audio_pipe_bytes(&connection->fifo));
    118         ssize_t ret =
     118        size_t ret =
    119119            audio_pipe_mix_data(&connection->fifo, data, size, &format);
    120         if (ret != (ssize_t)size)
     120        if (ret != size)
    121121                log_warning("Connection failed to provide enough data %zd/%zu",
    122122                    ret, size);
    123         return ret > 0 ? EOK : ret;
     123        return EOK;
    124124}
    125125/**
     
    129129 * @return Error code.
    130130 */
    131 int connection_push_data(connection_t *connection,
     131errno_t connection_push_data(connection_t *connection,
    132132    audio_data_t *adata)
    133133{
    134134        assert(connection);
    135135        assert(adata);
    136         const int ret = audio_pipe_push(&connection->fifo, adata);
     136        const errno_t ret = audio_pipe_push(&connection->fifo, adata);
    137137        if (ret == EOK && connection->sink->data_available)
    138138                connection->sink->data_available(connection->sink);
Note: See TracChangeset for help on using the changeset viewer.