Changes in uspace/app/wavplay/drec.c [5a6cc679:b752a31] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/drec.c
r5a6cc679 rb752a31 42 42 #include <as.h> 43 43 #include <inttypes.h> 44 #include <str.h> 44 45 45 46 #include "wave.h" … … 85 86 86 87 /** 87 * Recording callback. Writes recorded data. 88 * @param iid IPC call id. 89 * @param icall Poitner to IPC call structure. 90 * @param arg Argument. Poitner to recording helper structure. 91 */ 92 static void device_event_callback(ipc_callid_t iid, ipc_call_t *icall, void* arg) 93 { 94 async_answer_0(iid, EOK); 88 * Recording callback. 89 * 90 * Writes recorded data. 91 * 92 * @param icall_handle IPC call handle. 93 * @param icall Poitner to IPC call structure. 94 * @param arg Argument. Poitner to recording helper structure. 95 */ 96 static void device_event_callback(cap_call_handle_t icall_handle, 97 ipc_call_t *icall, void *arg) 98 { 99 async_answer_0(icall_handle, EOK); 95 100 record_t *rec = arg; 96 101 const size_t buffer_part = rec->buffer.size / BUFFER_PARTS; … … 98 103 while (record) { 99 104 ipc_call_t call; 100 ipc_callid_t callid= async_get_call(&call);105 cap_call_handle_t chandle = async_get_call(&call); 101 106 switch(IPC_GET_IMETHOD(call)) { 102 107 case PCM_EVENT_CAPTURE_TERMINATED: … … 109 114 default: 110 115 printf("Unknown event %" PRIun ".\n", IPC_GET_IMETHOD(call)); 111 async_answer_0(c allid, ENOTSUP);116 async_answer_0(chandle, ENOTSUP); 112 117 continue; 113 118 } 114 119 115 120 if (!record) { 116 async_answer_0(c allid, EOK);121 async_answer_0(chandle, EOK); 117 122 break; 118 123 } … … 126 131 if (rec->buffer.position >= (rec->buffer.base + rec->buffer.size)) 127 132 rec->buffer.position = rec->buffer.base; 128 async_answer_0(c allid, EOK);133 async_answer_0(chandle, EOK); 129 134 } 130 135 } … … 194 199 } 195 200 196 c onst char* info = NULL;201 char* info = NULL; 197 202 ret = audio_pcm_get_info_str(session, &info); 198 203 if (ret != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.