Skip to content

Commit c416748

Browse files
committed
v1.0.8
1 parent 8805d51 commit c416748

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

bin/udp_player

-851 KB
Binary file not shown.

source/udp_player

0 Bytes
Binary file not shown.

source/udp_player.ctps

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
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"/>
@@ -38,11 +39,10 @@
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>
@@ -219,10 +219,6 @@
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"/>
@@ -235,6 +231,10 @@
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"/>

source/udp_player.dbg

8 Bytes
Binary file not shown.

source/unit1.pas

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)