Skip to content

Commit 1ba54b0

Browse files
committed
chore: 更新.gitignore并修正MiniAudio本地接口参数类型
- 将build_x86/和CMakeSettings.json添加到.gitignore中 - 将DecoderReadPcmFrames和DecoderGetLengthInPcmFrames的参数从uint改为ulong以匹配原生库签名
1 parent 9cfe79d commit 1ba54b0

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,7 @@ MigrationBackup/
358358
/Models_Data.json
359359

360360
# binaries
361-
/Src/Backends/MiniAudio/runtimes/
361+
/Src/Backends/MiniAudio/runtimes/
362+
363+
build_x86/
364+
CMakeSettings.json

Src/Backends/MiniAudio/Native.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ public static partial Result DecoderInit(BufferProcessingCallback onRead, SeekCa
184184
public static partial Result DecoderUninit(nint pDecoder);
185185

186186
[LibraryImport(LibraryName, EntryPoint = "ma_decoder_read_pcm_frames")]
187-
public static partial Result DecoderReadPcmFrames(nint decoder, nint framesOut, uint frameCount,
187+
public static partial Result DecoderReadPcmFrames(nint decoder, nint framesOut, ulong frameCount,
188188
out ulong framesRead);
189189

190190
[LibraryImport(LibraryName, EntryPoint = "ma_decoder_seek_to_pcm_frame")]
191191
public static partial Result DecoderSeekToPcmFrame(nint decoder, ulong frame);
192192

193193
[LibraryImport(LibraryName, EntryPoint = "ma_decoder_get_length_in_pcm_frames")]
194-
public static partial Result DecoderGetLengthInPcmFrames(nint decoder, out uint* length);
194+
public static partial Result DecoderGetLengthInPcmFrames(nint decoder, out ulong length);
195195

196196
#endregion
197197

0 commit comments

Comments
 (0)