Changeset 92b638c in mainline for uspace/app/wavplay


Ignore:
Timestamp:
2012-08-30T11:41:48Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5eed99d
Parents:
ed3816d
Message:

audio, sb16: Add and implement API for playback/capture with or without fragments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/wavplay/dplay.c

    red3816d r92b638c  
    113113                   buffer_part, pb->source);
    114114                if (bytes == 0) {
    115                         audio_pcm_stop_playback(pb->device);
     115                        audio_pcm_last_playback_fragment(pb->device);
    116116                }
    117117                bzero(pb->buffer.position + bytes, buffer_part - bytes);
     
    148148        const unsigned frames = pb->buffer.size /
    149149            (BUFFER_PARTS * channels * pcm_sample_format_size(format));
    150         ret = audio_pcm_start_playback(pb->device, frames, channels,
     150        ret = audio_pcm_start_playback_fragment(pb->device, frames, channels,
    151151            sampling_rate, format);
    152152        if (ret != EOK) {
Note: See TracChangeset for help on using the changeset viewer.