diff --git a/VL.Audio/src/VL/AudioSampleRateEnum.cs b/VL.Audio/src/VL/AudioSampleRateEnum.cs index 4d28e6a..a7b49b8 100644 --- a/VL.Audio/src/VL/AudioSampleRateEnum.cs +++ b/VL.Audio/src/VL/AudioSampleRateEnum.cs @@ -51,18 +51,15 @@ protected override IReadOnlyDictionary GetEntries() { var samplingRates = new Dictionary(); - try - { - foreach (var item in Enum.GetValues(typeof(AudioSampleRateEnum))) + foreach (var item in Enum.GetValues(typeof(AudioSampleRateEnum))) + try + { if (AudioService.Engine?.IsSampleRateSupported((int)item) ?? false) - samplingRates.Add(((int)item).ToString(), (int)item); - } - catch - { - //Realtek ASIO drivers seem to fail getting samplerates, but 48000 still works - if (samplingRates.None()) - samplingRates.Add("48000", 48000); - } + samplingRates.Add(((int)item).ToString(), (int)item); + } + catch + { + } return samplingRates; }