naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.37k stars 1.09k forks source link

[UWP] Is there a way to make NAudio.Wasapi/NAudio.WaveFormRenderer(NAudio.Core) pass Windows App Certification Kit? #1104

Open Billeclipse opened 5 months ago

Billeclipse commented 5 months ago

Discussed in https://github.com/naudio/NAudio/discussions/1030

Originally posted by **Billeclipse** May 22, 2023 I see that only WasapiOutRT and WasapiCaptureRT exists for UWP and i know that the UWP support in NAudio is still in a beta state but is there any way to support naudio/NAudio.WaveFormRenderer and create waveforms for an UWP app?

After making NAudio.WaveFormRenderer nuget package work at my UWP project i am getting 4 errors at the WACK (Windows App Certification Kit). The dependencies that i am using from the NAudio.WaveFormRenderer are the PeakInfo class and the NAudio.Core -> NAudio.Wave -> ISampleProvider class. Also from the NAudio.Wasapi i am using the classes NAudio.Wave -> MediaFoundationReader and NAudio.Wave -> StreamMediaFoundationReader.

Screenshot 2024-01-04 173425

Example project with the WACK issue: WaveformUISample

Is there a way to solve those errors?