Changeset b893cd6 in mainline
- Timestamp:
- 2013-04-03T19:01:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aab8e3d3
- Parents:
- a94de68
- Location:
- uspace/srv/audio/hound
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_sink.h
ra94de68 rb893cd6 59 59 static inline audio_sink_t * audio_sink_list_instance(link_t *l) 60 60 { 61 return l ist_get_instance(l, audio_sink_t, link);61 return l ? list_get_instance(l, audio_sink_t, link) : NULL; 62 62 } 63 63 -
uspace/srv/audio/hound/audio_source.c
ra94de68 rb893cd6 59 59 list_initialize(&source->connections); 60 60 source->name = str_dup(name); 61 if (!source->name) 62 return ENOMEM; 61 63 source->private_data = data; 62 64 source->connection_change = connection_change; -
uspace/srv/audio/hound/audio_source.h
ra94de68 rb893cd6 60 60 static inline audio_source_t * audio_source_list_instance(link_t *l) 61 61 { 62 return l ist_get_instance(l, audio_source_t, link);62 return l ? list_get_instance(l, audio_source_t, link) : NULL; 63 63 } 64 64 -
uspace/srv/audio/hound/connection.c
ra94de68 rb893cd6 54 54 list_append(&conn->sink_link, &sink->connections); 55 55 audio_sink_set_format(sink, audio_source_format(source)); 56 source->connection_change(source, true); 57 sink->connection_change(sink, true); 56 if (source->connection_change) 57 source->connection_change(source, true); 58 if (sink->connection_change) 59 sink->connection_change(sink, true); 58 60 } 59 61 return conn;
Note:
See TracChangeset
for help on using the changeset viewer.