Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .NetMAUI and NAudio

.NetMAUI and NAudio

Scheduled Pinned Locked Moved C#
csharpphpcomquestionworkspace
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    D Handy
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • D D 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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • L Lost User

        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

        D Offline
        D Offline
        D Handy
        wrote on last edited by
        #3

        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???

        D L 2 Replies Last reply
        0
        • D D Handy

          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???

          D Offline
          D Offline
          D Handy
          wrote on last edited by
          #4

          Also, kludge, great word. Just looked it up. :)

          1 Reply Last reply
          0
          • D D Handy

            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???

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups