Changeset 01aef43 in mainline for uspace/drv/audio/sb16/dsp.h


Ignore:
Timestamp:
2011-10-21T16:48:27Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f351c8
Parents:
1a11a16
Message:

sb16: Add lazy buffer initialization.

File:
1 edited

Legend:

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

    r1a11a16 r01aef43  
    4646                uint8_t minor;
    4747        } version;
    48         uint8_t *data_buffer;
    49         uint8_t *buffer_position;
    50         size_t buffer_size;
     48        struct {
     49                uint8_t *buffer_data;
     50                uint8_t *buffer_position;
     51                size_t buffer_size;
     52        } buffer;
    5153} sb_dsp_t;
    5254
    53 
    54 
    55 /*----------------------------------------------------------------------------*/
    5655int sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs);
    57 /*----------------------------------------------------------------------------*/
    5856int sb_dsp_play_direct(sb_dsp_t *dsp, const uint8_t *data, size_t size,
    5957    unsigned sample_rate, unsigned channels, unsigned bit_depth);
     58int sb_dsp_play(sb_dsp_t *dsp, const uint8_t *data, size_t size,
     59    unsigned sample_rate, unsigned channels, unsigned bit_depth);
     60
    6061#endif
    6162/**
Note: See TracChangeset for help on using the changeset viewer.