1
0
mirror of synced 2025-01-31 03:53:44 +01:00
This commit is contained in:
0auBSQ 2024-04-16 18:41:02 +09:00
commit 0812e39350
4 changed files with 21 additions and 11 deletions

View File

@ -78,7 +78,8 @@ namespace FDK
public void Dispose()
{
close = true;
bDrawing = false;
close = true;
cts?.Cancel();
while (DS != DecodingState.Stopped) ;
frameconv.Dispose();
@ -102,7 +103,9 @@ namespace FDK
CTimer.Reset();
CTimer.Resume();
this.bPlaying = true;
}
bDrawing = true;
}
public void PauseControl()
{
@ -122,7 +125,8 @@ namespace FDK
{
CTimer.Pause();
this.bPlaying = false;
}
bDrawing = false;
}
public void InitRead()
{
@ -329,7 +333,8 @@ namespace FDK
//for play
public bool bPlaying { get; private set; } = false;
private CTimer CTimer;
public bool bDrawing { get; private set; } = false;
private CTimer CTimer;
private AVRational Framerate;
private CTexture lastTexture;
private bool bqueueinitialized = false;

View File

@ -391,11 +391,14 @@ namespace TJAPlayer3
}
else
{
this.rCurrentlySelectedSong.rParentNode.bIsOpenFolder = false;
// Reindex the parent node
this.rCurrentlySelectedSong.rParentNode.Openindex = rCurrentlySelectedSong.rParentNode.list子リスト.IndexOf(this.rCurrentlySelectedSong);
tChangeSong(-this.rCurrentlySelectedSong.rParentNode.Openindex);
}
List<CSongListNode> currentSongList = flattenList(TJAPlayer3.Songs管理.list曲ルート, true);
this.rCurrentlySelectedSong.rParentNode.Openindex = currentSongList.IndexOf(this.rCurrentlySelectedSong) - currentSongList.IndexOf(this.rCurrentlySelectedSong.rParentNode.list子リスト[0]);
this.rCurrentlySelectedSong.rParentNode.bIsOpenFolder = false;
tChangeSong(-this.rCurrentlySelectedSong.rParentNode.Openindex);
}
this.t現在選択中の曲を元に曲バーを再構成する();
this.t選択曲が変更された(false); // #27648 項目数変更を反映させる

View File

@ -44,9 +44,9 @@ namespace TJAPlayer3
public unsafe int t進行描画( int x, int y )
{
if ( !base.IsDeActivated )
if ( !base.IsDeActivated)
{
if (this.rVD == null)
if (this.rVD == null || !rVD.bDrawing)
return 0;
this.rVD.GetNowFrame(ref this.tx描画用);

View File

@ -7,6 +7,7 @@ using FDK;
using FDK.ExtensionMethods;
using TJAPlayer3;
using System.Linq;
using Silk.NET.Core;
namespace TJAPlayer3
{
@ -5575,7 +5576,8 @@ namespace TJAPlayer3
else
{
this.actAVI.Seek(0);
}
}
break;
}
}
}