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


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

hound: doxygen and cleanup

File:
1 edited

Legend:

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

    rf0a647c rc799138  
    4747typedef struct audio_sink audio_sink_t;
    4848
     49/** Audio sink abstraction structure */
    4950struct audio_sink {
     51        /** Link in hound's sink list */
    5052        link_t link;
     53        /** List of all related connections */
    5154        list_t connections;
     55        /** Sink's name */
    5256        const char *name;
     57        /** Consumes data in this format */
    5358        pcm_format_t format;
     59        /** Backend data */
    5460        void *private_data;
     61        /** Connect/disconnect callback */
    5562        int (*connection_change)(audio_sink_t *, bool);
     63        /** Backend callback to check data */
    5664        int (*check_format)(audio_sink_t *);
    5765};
    5866
     67/**
     68 * List instance helper.
     69 * @param l link
     70 * @return pointer to a sink structure, NULL on failure.
     71 */
    5972static inline audio_sink_t * audio_sink_list_instance(link_t *l)
    6073{
     
    6578    void *private_data, int (*connection_change)(audio_sink_t *, bool),
    6679    int (*check_format)(audio_sink_t *), const pcm_format_t *f);
     80
    6781void audio_sink_fini(audio_sink_t *sink);
    68 
    6982int audio_sink_set_format(audio_sink_t *sink, const pcm_format_t *format);
    70 //int audio_sink_add_source(audio_sink_t *sink, audio_source_t *source);
    71 //int audio_sink_remove_source(audio_sink_t *sink, audio_source_t *source);
    7283void audio_sink_mix_inputs(audio_sink_t *sink, void* dest, size_t size);
    7384
    74 
    7585#endif
    76 
    7786/**
    7887 * @}
    7988 */
    80 
Note: See TracChangeset for help on using the changeset viewer.