Changeset f3fced0 in mainline for uspace/srv/audio/hound/audio_sink.c
- Timestamp:
- 2012-07-13T05:39:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b2ac3d
- Parents:
- 63d6ff9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_sink.c
r63d6ff9 rf3fced0 58 58 sink->private_data = private_data; 59 59 sink->format = *f; 60 sink->connection_change = connection_change; 60 61 log_verbose("Initialized sink (%p) '%s'", sink, sink->name); 61 62 return EOK; … … 90 91 sink->format = AUDIO_FORMAT_DEFAULT; 91 92 } else { 92 log_verbose("Set format base on the first "93 "source(%s): %u channel s, %uHz, %s for "94 " 93 log_verbose("Set format based on the first " 94 "source(%s): %u channel(s), %uHz, %s for " 95 "sink %s.", source->name, 95 96 source->format.channels, 96 97 source->format.sampling_rate, … … 103 104 } 104 105 106 audio_source_connected(source, sink); 107 105 108 if (sink->connection_change) { 109 log_verbose("Calling connection change"); 106 110 const int ret = sink->connection_change(sink); 107 111 if (ret != EOK) { 108 112 log_debug("Connection hook failed."); 113 audio_source_connected(source, NULL); 109 114 list_remove(&source->link); 110 115 sink->format = old_format; … … 112 117 } 113 118 } 119 log_verbose("Connected source '%s' to sink '%s'", 120 source->name, sink->name); 114 121 115 122 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.