Changeset d86c9736 in mainline for uspace/srv/audio/hound/audio_device.c
- Timestamp:
- 2012-08-19T14:35:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa91c0f
- Parents:
- ad42844
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/audio_device.c
rad42844 rd86c9736 153 153 const unsigned frames = dev->buffer.size / 154 154 (BUFFER_PARTS * pcm_format_frame_size(&dev->sink.format)); 155 ret = audio_pcm_start_ record(dev->sess, frames,155 ret = audio_pcm_start_capture(dev->sess, frames, 156 156 dev->sink.format.channels, dev->sink.format.sampling_rate, 157 157 dev->sink.format.sample_format); … … 163 163 } 164 164 } else { /* Disconnected */ 165 int ret = audio_pcm_stop_ record(dev->sess);165 int ret = audio_pcm_stop_capture(dev->sess); 166 166 if (ret != EOK) { 167 167 log_error("Failed to start recording: %s", … … 208 208 break; 209 209 } 210 case PCM_EVENT_PLAYBACK_TERMINATED: {210 case PCM_EVENT_PLAYBACK_TERMINATED: 211 211 log_verbose("Playback terminated!"); 212 212 return; 213 } 214 case PCM_EVENT_FRAMES_RECORDED: { 213 case PCM_EVENT_FRAMES_CAPTURED: 215 214 //TODO implement 216 215 break; 217 } 218 case PCM_EVENT_RECORDING_TERMINATED: 216 case PCM_EVENT_CAPTURE_TERMINATED: 219 217 log_verbose("Recording terminated!"); 220 218 return;
Note:
See TracChangeset
for help on using the changeset viewer.