Changeset b266f9e in mainline for uspace/srv/audio/hound/hound_ctx.h


Ignore:
Timestamp:
2013-04-04T11:15:41Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bf13c9a4
Parents:
6133470
Message:

hound: implement stream creation/destruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound_ctx.h

    r6133470 rb266f9e  
    5454}
    5555
     56typedef struct {
     57        link_t link;
     58        hound_ctx_t *ctx;
     59        pcm_format_t format;
     60        int flags;
     61        size_t allowed_size;
     62} hound_ctx_stream_t;
     63
     64static inline hound_ctx_stream_t *hound_ctx_stream_from_link(link_t *l)
     65{
     66        return l ? list_get_instance(l, hound_ctx_stream_t, link) : NULL;
     67}
     68
     69
    5670hound_ctx_t *hound_record_ctx_get(const char *name);
    5771hound_ctx_t *hound_playback_ctx_get(const char *name);
     
    6175bool hound_ctx_is_record(hound_ctx_t *ctx);
    6276
     77hound_ctx_stream_t *hound_ctx_create_stream(hound_ctx_t *ctx, int flags,
     78        pcm_format_t format, size_t buffer_size);
     79void hound_ctx_destroy_stream(hound_ctx_stream_t *stream);
     80
    6381#endif
    6482
Note: See TracChangeset for help on using the changeset viewer.