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/lib/drv/include/audio_pcm_iface.h

    red3816d r92b638c  
    8181int audio_pcm_release_buffer(audio_pcm_sess_t *);
    8282
    83 int audio_pcm_start_playback(audio_pcm_sess_t *, unsigned,
     83int audio_pcm_start_playback_fragment(audio_pcm_sess_t *, unsigned,
     84    unsigned, unsigned, pcm_sample_format_t);
     85int audio_pcm_last_playback_fragment(audio_pcm_sess_t *);
     86
     87int audio_pcm_start_playback(audio_pcm_sess_t *,
    8488    unsigned, unsigned, pcm_sample_format_t);
    8589int audio_pcm_stop_playback(audio_pcm_sess_t *);
    8690
    87 int audio_pcm_start_capture(audio_pcm_sess_t *, unsigned,
     91int audio_pcm_start_capture_fragment(audio_pcm_sess_t *, unsigned,
     92    unsigned, unsigned, pcm_sample_format_t);
     93int audio_pcm_last_capture_fragment(audio_pcm_sess_t *);
     94
     95int audio_pcm_start_capture(audio_pcm_sess_t *,
    8896    unsigned, unsigned, pcm_sample_format_t);
    8997int audio_pcm_stop_capture(audio_pcm_sess_t *);
     
    102110        int (*start_playback)(ddf_fun_t *, unsigned,
    103111            unsigned, unsigned, pcm_sample_format_t);
    104         int (*stop_playback)(ddf_fun_t *);
     112        int (*stop_playback)(ddf_fun_t *, bool);
    105113        int (*start_capture)(ddf_fun_t *, unsigned,
    106114            unsigned, unsigned, pcm_sample_format_t);
    107         int (*stop_capture)(ddf_fun_t *);
     115        int (*stop_capture)(ddf_fun_t *, bool);
    108116} audio_pcm_iface_t;
    109117
Note: See TracChangeset for help on using the changeset viewer.