Changeset d86c9736 in mainline for uspace/app/drec/drec.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/app/drec/drec.c
rad42844 rd86c9736 89 89 ipc_callid_t callid = async_get_call(&call); 90 90 switch(IPC_GET_IMETHOD(call)) { 91 case PCM_EVENT_FRAMES_ RECORDED:91 case PCM_EVENT_FRAMES_CAPTURED: 92 92 printf("%u frames\n", IPC_GET_ARG1(call)); 93 93 async_answer_0(callid, EOK); 94 94 break; 95 case PCM_EVENT_ RECORDING_TERMINATED:95 case PCM_EVENT_CAPTURE_TERMINATED: 96 96 printf("Recording terminated\n"); 97 97 return; … … 124 124 const unsigned frames = rec->buffer.size / 125 125 (BUFFER_PARTS * channels * pcm_sample_format_size(format)); 126 int ret = audio_pcm_start_ record(rec->device,126 int ret = audio_pcm_start_capture(rec->device, 127 127 frames, channels, sampling_rate, format); 128 128 if (ret != EOK) { … … 133 133 getchar(); 134 134 printf("\n"); 135 audio_pcm_stop_ record(rec->device);135 audio_pcm_stop_capture(rec->device); 136 136 } 137 137
Note:
See TracChangeset
for help on using the changeset viewer.