File tree Expand file tree Collapse file tree 5 files changed +19
-12
lines changed
Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 2222 <ComponentName Value =" Form1" />
2323 <HasResources Value =" True" />
2424 <ResourceBaseClass Value =" Form" />
25+ <IsVisibleTab Value =" True" />
2526 <EditorIndex Value =" 0" />
2627 <WindowIndex Value =" 0" />
27- <TopLine Value =" 343 " />
28- <CursorPos Y =" 348 " />
28+ <TopLine Value =" 2 " />
29+ <CursorPos X = " 67 " Y =" 9 " />
2930 <UsageCount Value =" 200" />
3031 <Loaded Value =" True" />
3132 <LoadedDesigner Value =" True" />
3839 <HasResources Value =" True" />
3940 <ResourceBaseClass Value =" Form" />
4041 <UnitName Value =" Unit2" />
41- <IsVisibleTab Value =" True" />
4242 <EditorIndex Value =" 1" />
4343 <WindowIndex Value =" 0" />
4444 <CursorPos Y =" 101" />
45- <UsageCount Value =" 133 " />
45+ <UsageCount Value =" 134 " />
4646 <Loaded Value =" True" />
4747 <LoadedDesigner Value =" True" />
4848 </Unit >
219219 <Filename Value =" unit2.pas" />
220220 <Caret Line =" 335" Column =" 44" TopLine =" 323" />
221221 </Position >
222- <Position >
223- <Filename Value =" unit2.pas" />
224- <Caret Line =" 337" Column =" 23" TopLine =" 345" />
225- </Position >
226222 <Position >
227223 <Filename Value =" unit2.pas" />
228224 <Caret Line =" 206" Column =" 11" TopLine =" 198" />
235231 <Filename Value =" unit2.pas" />
236232 <Caret Line =" 123" Column =" 30" TopLine =" 114" />
237233 </Position >
234+ <Position >
235+ <Filename Value =" unit1.pas" />
236+ <Caret Line =" 322" Column =" 6" TopLine =" 305" />
237+ </Position >
238238 </JumpHistory >
239239 <RunParams >
240240 <FormatVersion Value =" 2" />
Original file line number Diff line number Diff line change @@ -319,10 +319,17 @@ procedure TReceiverThread.Execute;
319319 snd_pcm_delay(pcm, @delay);
320320
321321 frames := snd_pcm_writei(pcm, @audiobuffer[12 ], (received - 12 ) div 4 );
322- if frames < 0 then
323- begin
324- frames := snd_pcm_recover(pcm, frames, 0 ); // try to recover from any error
325- end ;
322+ if frames < 0 then
323+ begin
324+ frames := snd_pcm_recover(pcm, frames, 0 );
325+ if frames >= 0 then
326+ frames := snd_pcm_writei(pcm, @audiobuffer[12 ], (received - 12 ) div 4 );
327+ end ;
328+
329+
330+
331+
332+
326333 end ;
327334
328335
You can’t perform that action at this time.
0 commit comments