Skip to content

Commit

Permalink
ts leds
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvdb committed Sep 19, 2023
1 parent 521860d commit 7051162
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions MinitiounerSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ public override long GetCurrentFrequency(int device, bool offset_included)

public override void Close()
{
// switch off TS led's
ftdi_hw.ftdi_ts_led(0, false);
ftdi_hw.ftdi_ts_led(1, false);

if (ts_thread_t != null)
ts_thread_t.Abort();
if (ts_thread_2_t != null)
Expand Down Expand Up @@ -306,6 +310,7 @@ public void nim_status_feedback(TunerStatus nim_status)
{
VideoChangeCB(1, true);
}
ftdi_hw.ftdi_ts_led(0, true);
}
else
{
Expand All @@ -314,8 +319,7 @@ public void nim_status_feedback(TunerStatus nim_status)
VideoChangeCB(1, false);
}

//stop_video1();
//ftdi_hw.ftdi_ts_led(0, false);
ftdi_hw.ftdi_ts_led(0, false);
}

T1P2_prevLocked = T1P2locked;
Expand All @@ -333,15 +337,17 @@ public void nim_status_feedback(TunerStatus nim_status)
{
VideoChangeCB(2, true);
}

ftdi_hw.ftdi_ts_led(1, true);
}
else
{
if (VideoChangeCB != null)
{
VideoChangeCB(2, false);
}
//stop_video2();
//ftdi_hw.ftdi_ts_led(0, false);

ftdi_hw.ftdi_ts_led(1, false);
}

T2P1_prevLocked = T2P1Locked;
Expand Down
2 changes: 1 addition & 1 deletion VLCMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ private void updateVideoPlayer(MediaPlayer newPlayer, bool play)
{
videoView.MediaPlayer = newPlayer;


if (play)
{
Thread.Sleep(10);
Console.WriteLine("HWND: " + videoView.MediaPlayer.Hwnd.ToString());
videoView.MediaPlayer.Play(media);
}
}
Expand Down
4 changes: 2 additions & 2 deletions opentuner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
<Reference Include="FFmpeg.AutoGen, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9b7632533a381715, processorArchitecture=MSIL">
<HintPath>packages\FFmpeg.AutoGen.6.0.0\lib\netstandard2.0\FFmpeg.AutoGen.dll</HintPath>
</Reference>
<Reference Include="FlyleafLib, Version=3.7.14.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\FlyleafLib.3.7.14\lib\net472\FlyleafLib.dll</HintPath>
<Reference Include="FlyleafLib, Version=3.7.24.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\FlyleafLib.3.7.24\lib\net472\FlyleafLib.dll</HintPath>
</Reference>
<Reference Include="FTD2XX_NET">
<HintPath>.\FTD2XX_NET.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<packages>
<package id="CoreAudio" version="1.27.0" targetFramework="net472" />
<package id="FFmpeg.AutoGen" version="6.0.0" targetFramework="net472" />
<package id="FlyleafLib" version="3.7.14" targetFramework="net472" />
<package id="FlyleafLib" version="3.7.24" targetFramework="net472" />
<package id="LibVLCSharp" version="3.7.0" targetFramework="net472" />
<package id="LibVLCSharp.WinForms" version="3.7.0" targetFramework="net472" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="7.0.0" targetFramework="net472" />
Expand Down

0 comments on commit 7051162

Please sign in to comment.