Changes in uspace/app/wavplay/drec.c [0e4c5f0:b6e481b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/drec.c
r0e4c5f0 rb6e481b 47 47 48 48 49 #define BUFFER_PARTS 1649 #define BUFFER_PARTS 2 50 50 51 51 /** Recording format */ … … 103 103 printf("Recording terminated\n"); 104 104 record = false; 105 break;106 105 case PCM_EVENT_FRAMES_CAPTURED: 107 106 printf("%" PRIun " frames\n", IPC_GET_ARG1(call)); 107 async_answer_0(callid, EOK); 108 108 break; 109 109 default: … … 111 111 async_answer_0(callid, ENOTSUP); 112 112 continue; 113 } 114 115 if (!record) { 116 async_answer_0(callid, EOK); 117 break; 113 118 114 } 119 115 … … 160 156 printf("\n"); 161 157 audio_pcm_stop_capture(rec->device); 162 /* XXX Control returns even before we can be sure callbacks finished */163 printf("Delay before playback termination\n");164 async_usleep(1000000);165 printf("Terminate playback\n");166 158 } 167 159
Note:
See TracChangeset
for help on using the changeset viewer.