Changeset 23878dc in mainline for uspace/srv/audio/hound/hound_ctx.c


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

hound: move audio_data_t to a new header file

make ctx streams opaque

File:
1 edited

Legend:

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

    rbf13c9a4 r23878dc  
    3838
    3939#include "hound_ctx.h"
     40#include "audio_data.h"
    4041#include "log.h"
    4142
     
    9798 * STREAMS
    9899 */
     100typedef struct hound_ctx_stream {
     101        link_t link;
     102        list_t fifo;
     103        hound_ctx_t *ctx;
     104        pcm_format_t format;
     105        int flags;
     106        size_t allowed_size;
     107        size_t current_size;
     108} hound_ctx_stream_t;
    99109
    100 typedef struct {
    101         const void *data;
    102         size_t size;
    103         link_t link;
    104 } audio_data_t;
    105 
    106 static inline audio_data_t * audio_data_list_instance(link_t *l)
     110static inline hound_ctx_stream_t *hound_ctx_stream_from_link(link_t *l)
    107111{
    108         return l ? list_get_instance(l, audio_data_t, link) : NULL;
     112        return l ? list_get_instance(l, hound_ctx_stream_t, link) : NULL;
    109113}
    110114
Note: See TracChangeset for help on using the changeset viewer.