From 46766a39e00063671953dc8446bd9d28aadc62bc Mon Sep 17 00:00:00 2001 From: TRAfoer Date: Sat, 12 Jul 2025 18:56:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=BA=86=E4=B8=AAfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EditorGame/Base/ProjectFiles/SongInformation.cs | 3 ++- Assets/Scripts/Manager/MusicPlayer.cs | 2 +- .../AutoSave/World of white lies.meta | 8 ++++++++ .../AutoSave/World of white lies/AutoSave_0.json | 13 +++++++++++++ .../World of white lies/AutoSave_0.json.meta | 7 +++++++ 5 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 Assets/StreamingAssets/AutoSave/World of white lies.meta create mode 100644 Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json create mode 100644 Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json.meta diff --git a/Assets/Scripts/EditorGame/Base/ProjectFiles/SongInformation.cs b/Assets/Scripts/EditorGame/Base/ProjectFiles/SongInformation.cs index f4150bbe..b046c6e6 100644 --- a/Assets/Scripts/EditorGame/Base/ProjectFiles/SongInformation.cs +++ b/Assets/Scripts/EditorGame/Base/ProjectFiles/SongInformation.cs @@ -56,10 +56,11 @@ namespace Ichni.RhythmGame (int)(mpegFile.Length / sizeof(float) / mpegFile.Channels), mpegFile.Channels, mpegFile.SampleRate, - true, + false, data => { int actualReadCount = mpegFile.ReadSamples(data, 0, data.Length); }, position => { mpegFile = new MpegFile(filepath); }); + return ac; } diff --git a/Assets/Scripts/Manager/MusicPlayer.cs b/Assets/Scripts/Manager/MusicPlayer.cs index 8b756482..1d4778f4 100644 --- a/Assets/Scripts/Manager/MusicPlayer.cs +++ b/Assets/Scripts/Manager/MusicPlayer.cs @@ -12,7 +12,7 @@ namespace Ichni.Editor public bool isDebugging; public bool isPlaying; public AudioSource audioSource; - + private float DspTime => (float)AudioSettings.dspTime; private void Update() { if (isDebugging) diff --git a/Assets/StreamingAssets/AutoSave/World of white lies.meta b/Assets/StreamingAssets/AutoSave/World of white lies.meta new file mode 100644 index 00000000..14daa289 --- /dev/null +++ b/Assets/StreamingAssets/AutoSave/World of white lies.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8ade827ad61102946926e5f15fbfad63 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json b/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json new file mode 100644 index 00000000..4b4a59c4 --- /dev/null +++ b/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json @@ -0,0 +1,13 @@ +{ + "BeatMap" : { + "__type" : "Ichni.RhythmGame.Beatmap.BeatmapContainer_BM,Assembly-CSharp", + "value" : { + "elementList" : [ + + ], + "attachedElementGuid" : { + "value" : "00000000-0000-0000-0000-000000000000" + } + } + } +} \ No newline at end of file diff --git a/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json.meta b/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json.meta new file mode 100644 index 00000000..a1c716c1 --- /dev/null +++ b/Assets/StreamingAssets/AutoSave/World of white lies/AutoSave_0.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7a16dd0f183be7e49b40a885552321f1 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: