.NetMAUI and NAudio
-
Hello, I just started working with NAudio with the hope that it will provide the required MIDI and audio routines for a personal project I am working on. I have been programming since 1980 but basically stopped for several decades until I recently retired from Engineering. I have attempted an initial small app with NAudio in .netMAUI but it is not working. I used the following link (http://truelogic.org/wordpress/2021/01/28/using-midi-with-naudio/) to input a small console app based upon the creators description of the midi capabilities. This worked great. I then tried to make it into a MAUI app. The devices are found but it never passes into the "midiIn_MessageReceived" function?? The project can be found at https://github.com/handysharp/Maui-NAudio. Can you think of any reason why this simple app would not be picking up the keyboard midi messages. The setup works, as it runs great with the console app. TIA Dave Handy
-
Hello, I just started working with NAudio with the hope that it will provide the required MIDI and audio routines for a personal project I am working on. I have been programming since 1980 but basically stopped for several decades until I recently retired from Engineering. I have attempted an initial small app with NAudio in .netMAUI but it is not working. I used the following link (http://truelogic.org/wordpress/2021/01/28/using-midi-with-naudio/) to input a small console app based upon the creators description of the midi capabilities. This worked great. I then tried to make it into a MAUI app. The devices are found but it never passes into the "midiIn_MessageReceived" function?? The project can be found at https://github.com/handysharp/Maui-NAudio. Can you think of any reason why this simple app would not be picking up the keyboard midi messages. The setup works, as it runs great with the console app. TIA Dave Handy
I think mating Naudio (".Net") and Maui (cross-platform) would be considered a kludge when "native" audio controls are available. [Dave's Tech Blog: Playing audio with .NET MAUI](https://www.davidbritch.com/2022/09/playing-audio-with-net-maui.html)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
I think mating Naudio (".Net") and Maui (cross-platform) would be considered a kludge when "native" audio controls are available. [Dave's Tech Blog: Playing audio with .NET MAUI](https://www.davidbritch.com/2022/09/playing-audio-with-net-maui.html)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
Thx Gerry, forgive my ignorance but I am new to all of this .Net, Maui, UI3, etc. I would really like to do the prog in C# with .Net MAUI because I have devoted the most learning time to them...seemed to be the best way to go at the time. What "native" audio controls do you speak of???
-
Thx Gerry, forgive my ignorance but I am new to all of this .Net, Maui, UI3, etc. I would really like to do the prog in C# with .Net MAUI because I have devoted the most learning time to them...seemed to be the best way to go at the time. What "native" audio controls do you speak of???
-
Thx Gerry, forgive my ignorance but I am new to all of this .Net, Maui, UI3, etc. I would really like to do the prog in C# with .Net MAUI because I have devoted the most learning time to them...seemed to be the best way to go at the time. What "native" audio controls do you speak of???
Quote:
Android has MediaPlayer, iOS/Mac Catalyst has AVPlayer, and WinUI has MediaPlayerElement (only available in WinAppSDK 1.2-preview).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I