Changeset 98af9cc in mainline
- Timestamp:
- 2013-04-06T22:10:00Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7db073f
- Parents:
- 78aca91b
- Location:
- uspace/srv/audio/hound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_data.c
r78aca91b r98af9cc 195 195 { 196 196 assert(pipe); 197 197 198 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); 199 200 size_t copied_size = 0; 201 200 202 fibril_mutex_lock(&pipe->guard); 201 203 while (needed_frames > 0 && !list_empty(&pipe->list)) { -
uspace/srv/audio/hound/connection.c
r78aca91b r98af9cc 86 86 if (!data) 87 87 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); 89 89 if (needed_frames > audio_pipe_frames(&connection->fifo) && 90 90 connection->source->update_available_data) {
Note:
See TracChangeset
for help on using the changeset viewer.