Changeset 98af9cc in mainline


Ignore:
Timestamp:
2013-04-06T22:10:00Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7db073f
Parents:
78aca91b
Message:

hound: use helper function

add const

Location:
uspace/srv/audio/hound
Files:
2 edited

Legend:

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

    r78aca91b r98af9cc  
    195195{
    196196        assert(pipe);
     197
    197198        const size_t dst_frame_size = pcm_format_frame_size(f);
    198         size_t needed_frames = size / dst_frame_size;
     199        size_t needed_frames = pcm_format_size_to_frames(size, f);
    199200        size_t copied_size = 0;
     201
    200202        fibril_mutex_lock(&pipe->guard);
    201203        while (needed_frames > 0 && !list_empty(&pipe->list)) {
  • uspace/srv/audio/hound/connection.c

    r78aca91b r98af9cc  
    8686        if (!data)
    8787                return EBADMEM;
    88         size_t needed_frames = pcm_format_size_to_frames(size, &format);
     88        const size_t needed_frames = pcm_format_size_to_frames(size, &format);
    8989        if (needed_frames > audio_pipe_frames(&connection->fifo) &&
    9090            connection->source->update_available_data) {
Note: See TracChangeset for help on using the changeset viewer.