From 3cff5d22de44b21333390b442dafcc0ccde9e196 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 3 Feb 2023 13:04:00 +0100 Subject: UX bugfix, microphone C# example --- Examples/MicrophoneCS/CommandLineArgs.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/MicrophoneCS/CommandLineArgs.cs b/Examples/MicrophoneCS/CommandLineArgs.cs index be5fbe9..9eee28c 100644 --- a/Examples/MicrophoneCS/CommandLineArgs.cs +++ b/Examples/MicrophoneCS/CommandLineArgs.cs @@ -98,6 +98,8 @@ namespace MicrophoneCS else throw new ArgumentException( $"Unknown argument: \"{arg}\"" ); } + if( listDevices ) + return; if( string.IsNullOrWhiteSpace( model ) ) throw new ArgumentException( "The model file is not provided in the arguments" ); if( !File.Exists( model ) ) -- cgit v1.2.3