Changeset 57e8b3b in mainline for uspace/drv/audio/sb16/dsp.h


Ignore:
Timestamp:
2012-07-15T15:25:43Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5cd5079
Parents:
2cc5c835
Message:

Add frame count to event report.

This enables applications to detect underruns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.h

    r2cc5c835 r57e8b3b  
    5757                uint8_t mode;
    5858                uint16_t samples;
     59                unsigned frame_count;
    5960        } active;
    6061        enum {
     
    7576int sb_dsp_set_event_session(sb_dsp_t *dsp, async_sess_t *session);
    7677int sb_dsp_release_buffer(sb_dsp_t *dsp);
    77 int sb_dsp_start_playback(sb_dsp_t *dsp, unsigned parts,
     78int sb_dsp_start_playback(sb_dsp_t *dsp, unsigned frames,
    7879    unsigned channels, unsigned sample_rate, pcm_sample_format_t format);
    7980int sb_dsp_stop_playback(sb_dsp_t *dsp);
    80 int sb_dsp_start_record(sb_dsp_t *dsp, unsigned parts,
     81int sb_dsp_start_record(sb_dsp_t *dsp, unsigned frames,
    8182    unsigned channels, unsigned sample_rate, pcm_sample_format_t format);
    8283int sb_dsp_stop_record(sb_dsp_t *dsp);
Note: See TracChangeset for help on using the changeset viewer.