Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 23878dc in mainline


Ignore:
Timestamp:
2013-04-04T12:35:05Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
76ea1b7
Parents:
bf13c9a4
Message:

hound: move audio_data_t to a new header file

make ctx streams opaque

Location:
uspace/srv/audio/hound
Files:
1 added
2 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
  • uspace/srv/audio/hound/hound_ctx.h

    rbf13c9a4 r23878dc  
    5454}
    5555
    56 typedef struct {
    57         link_t link;
    58         list_t fifo;
    59         hound_ctx_t *ctx;
    60         pcm_format_t format;
    61         int flags;
    62         size_t allowed_size;
    63         size_t current_size;
    64 } hound_ctx_stream_t;
    65 
    66 static inline hound_ctx_stream_t *hound_ctx_stream_from_link(link_t *l)
    67 {
    68         return l ? list_get_instance(l, hound_ctx_stream_t, link) : NULL;
    69 }
     56typedef struct hound_ctx_stream hound_ctx_stream_t;
    7057
    7158
     
    9077 * @}
    9178 */
    92 
Note: See TracChangeset for help on using the changeset viewer.