Changeset c799138 in mainline for uspace/srv/audio/hound/audio_source.h
- Timestamp:
- 2013-04-11T01:34:41Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 250828a
- Parents:
- f0a647c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_source.h
rf0a647c rc799138 42 42 typedef struct audio_source audio_source_t; 43 43 44 /** Audio data source abstraction structure */ 44 45 struct audio_source { 46 /** Link in hound's sources list */ 45 47 link_t link; 48 /** List of connections */ 46 49 list_t connections; 50 /** String identifier */ 47 51 const char *name; 52 /** audio data format */ 48 53 pcm_format_t format; 54 /** backend data */ 49 55 void *private_data; 56 /** Callback for connection and disconnection */ 50 57 int (*connection_change)(audio_source_t *source, bool added); 58 /** Ask backend for more data */ 51 59 int (*update_available_data)(audio_source_t *source, size_t size); 52 60 }; 53 61 62 /** 63 * List instance helper. 64 * @param l link 65 * @return pointer to a source structure, NULL on failure. 66 */ 54 67 static inline audio_source_t * audio_source_list_instance(link_t *l) 55 68 {
Note:
See TracChangeset
for help on using the changeset viewer.