Changeset ea6c838 in mainline for uspace/srv/audio/hound/audio_sink.h


Ignore:
Timestamp:
2012-07-17T08:26:49Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6bba8f
Parents:
950110ee
Message:

Create libpcm.

Move pcm related functions and definitions there.
Make other stuff use this library.
Rename most of it on the way.

File:
1 edited

Legend:

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

    r950110ee rea6c838  
    4141#include <bool.h>
    4242#include <fibril.h>
     43#include <pcm/format.h>
    4344
    4445#include "audio_source.h"
    45 #include "audio_format.h"
    4646
    4747typedef struct audio_sink audio_sink_t;
     
    5151        list_t sources;
    5252        const char *name;
    53         audio_format_t format;
     53        pcm_format_t format;
    5454        void *private_data;
    5555        int (*connection_change)(audio_sink_t *, bool);
     
    6464int audio_sink_init(audio_sink_t *sink, const char *name,
    6565    void *private_data, int (*connection_change)(audio_sink_t *, bool),
    66     int (*check_format)(audio_sink_t *), const audio_format_t *f);
     66    int (*check_format)(audio_sink_t *), const pcm_format_t *f);
    6767void audio_sink_fini(audio_sink_t *sink);
    6868
    69 int audio_sink_set_format(audio_sink_t *sink, const audio_format_t *format);
     69int audio_sink_set_format(audio_sink_t *sink, const pcm_format_t *format);
    7070int audio_sink_add_source(audio_sink_t *sink, audio_source_t *source);
    7171int audio_sink_remove_source(audio_sink_t *sink, audio_source_t *source);
Note: See TracChangeset for help on using the changeset viewer.