Changeset f04603e in mainline


Ignore:
Timestamp:
2013-04-05T14:34:14Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f440f5f
Parents:
c5d6f9cf
Message:

hound: fix audio pipe accounting on data retrieve

File:
1 edited

Legend:

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

    rc5d6f9cf rf04603e  
    174174                audio_data_link_t *alink = audio_data_link_list_instance(l);
    175175                list_remove(&alink->link);
     176                pipe->bytes -= audio_data_link_remain_size(alink);
     177                pipe->frames -= audio_data_link_available_frames(alink);
    176178                adata = alink->adata;
    177179                audio_data_addref(adata);
     
    214216                data += copy_size;
    215217                alink->position += (copy_frames * src_frame_size);
     218                pipe->bytes -= (copy_frames * src_frame_size);
     219                pipe->frames -= copy_frames;
    216220                if (audio_data_link_remain_size(alink) == 0) {
    217221                        list_remove(&alink->link);
Note: See TracChangeset for help on using the changeset viewer.