From 11da78f9acf13edc3dd66f183f5b910934374f46 Mon Sep 17 00:00:00 2001 From: Mario Guggenberger Date: Tue, 18 Nov 2025 18:28:44 +0100 Subject: [PATCH 1/4] fix: incomplete native error message --- nativesrc/aurioffmpegproxy/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativesrc/aurioffmpegproxy/proxy.c b/nativesrc/aurioffmpegproxy/proxy.c index d872b98..78edb57 100644 --- a/nativesrc/aurioffmpegproxy/proxy.c +++ b/nativesrc/aurioffmpegproxy/proxy.c @@ -671,7 +671,7 @@ static void pi_free(ProxyInstance **pi) { static void pi_set_error(ProxyInstance *pi, const char* fmt, ...) { va_list args; - int error_message_length = 100; + int error_message_length = 500; char *error_message = malloc(error_message_length); // Print the string with the argument list into the error message char array From 03e37dd96fc5bf3d5768cd0a7f15732f85aa9035 Mon Sep 17 00:00:00 2001 From: Mario Guggenberger Date: Tue, 18 Nov 2025 18:32:37 +0100 Subject: [PATCH 2/4] build: fix unsupported copy command on Windows --- src/Aurio/Aurio.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aurio/Aurio.csproj b/src/Aurio/Aurio.csproj index b249c41..a37883c 100644 --- a/src/Aurio/Aurio.csproj +++ b/src/Aurio/Aurio.csproj @@ -23,7 +23,7 @@ overlap-adding (OLA/COLA), fingerprinting, and WPF UI controls for visualization - + From 9a1c58fa6b8800574660527a81a2f3e298989d24 Mon Sep 17 00:00:00 2001 From: Mario Guggenberger Date: Tue, 18 Nov 2025 18:33:21 +0100 Subject: [PATCH 3/4] build: enable native debugging of FFmpeg unit tests --- src/Aurio.FFmpeg.UnitTest/Properties/launchSettings.json | 8 ++++++++ src/Aurio.FFmpeg/Aurio.FFmpeg.csproj | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 src/Aurio.FFmpeg.UnitTest/Properties/launchSettings.json diff --git a/src/Aurio.FFmpeg.UnitTest/Properties/launchSettings.json b/src/Aurio.FFmpeg.UnitTest/Properties/launchSettings.json new file mode 100644 index 0000000..703d533 --- /dev/null +++ b/src/Aurio.FFmpeg.UnitTest/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Aurio.FFmpeg.UnitTest": { + "commandName": "Project", + "nativeDebugging": true + } + } +} \ No newline at end of file diff --git a/src/Aurio.FFmpeg/Aurio.FFmpeg.csproj b/src/Aurio.FFmpeg/Aurio.FFmpeg.csproj index ebc41c3..7f8bfcf 100644 --- a/src/Aurio.FFmpeg/Aurio.FFmpeg.csproj +++ b/src/Aurio.FFmpeg/Aurio.FFmpeg.csproj @@ -42,6 +42,9 @@ PreserveNewest runtimes/win-x64/native + + PreserveNewest + From 9399d8c91b2bde088d9a7f5950be50de17cf3ddb Mon Sep 17 00:00:00 2001 From: Mario Guggenberger Date: Tue, 18 Nov 2025 18:36:00 +0100 Subject: [PATCH 4/4] fix: FFmpeg not loading files with UTF8 chars in name --- src/Aurio.FFmpeg.UnitTest/FFmpegReaderTests.cs | 8 ++++++++ .../Resources/utf8 special \302\260 character.wav" | Bin 0 -> 78 bytes src/Aurio.FFmpeg/FFmpegReader.cs | 2 +- src/Aurio.FFmpeg/Interop64.cs | 7 +++++-- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 "src/Aurio.FFmpeg.UnitTest/Resources/utf8 special \302\260 character.wav" diff --git a/src/Aurio.FFmpeg.UnitTest/FFmpegReaderTests.cs b/src/Aurio.FFmpeg.UnitTest/FFmpegReaderTests.cs index c8c7b52..108f8e7 100644 --- a/src/Aurio.FFmpeg.UnitTest/FFmpegReaderTests.cs +++ b/src/Aurio.FFmpeg.UnitTest/FFmpegReaderTests.cs @@ -52,5 +52,13 @@ public void SignalEOF() // -1 signals EOF Assert.Equal(-1, result); } + + [Fact] + public void Utf8FileName() + { + var fileInfo = new FileInfo("./Resources/utf8 special ° character.wav"); + + var reader = new FFmpegReader(fileInfo, Type.Audio); + } } } diff --git "a/src/Aurio.FFmpeg.UnitTest/Resources/utf8 special \302\260 character.wav" "b/src/Aurio.FFmpeg.UnitTest/Resources/utf8 special \302\260 character.wav" new file mode 100644 index 0000000000000000000000000000000000000000..4a86d261e421911303e952b60cd77f0bd10f5ca5 GIT binary patch literal 78 zcmWIYbaQiKU|