Recording an audio player in C #

I have a pretty cool idea for a special media player. I like to think of this project as a mini-launch, since I still don't know if my idea is really practical.

In any case, before I realize my idea, I will first need to implement a simple audio player. My preferred language for this project is C #, simply because it is so easy to use, but any other object-oriented language would be nice too.

I started without any knowledge of audio. My main goals right now:

  • The ability to play audio files - as many formats as possible (for example, a player such as VLC, but only audio).
  • The ability to analyze audio files - such as reading frequency, amplitude, volume and other audio information. I think maybe a good idea here is to analyze one file format (PCM?), And then temporarily convert any file I want to parse into this format. This is in order to later implement a mechanism that compares songs and identifies similar songs to recommend to the user (this function is not part of my idea, but I realized that it exists in many players now, I also need to have it if I want to be able to compete with them). BTW - I currently have no knowledge about audio / wavelengths / frequencies, etc., so I would appreciate it if someone could point me in the right direction about this analysis function.
  • Perhaps in the future I will expand and play video files, but now I am concentrating on audio.

After searching the Internet for a while, I came across LAME. The problem is that this is not C #, and I'm not sure how to use it. I know that there is something called "Interoperability" that should allow me to work with native DLL files through C #. Any information on this would also be helpful.

Any help would be greatly appreciated.

Thanks, Malki :)

+4
source share
1 answer
+7
source

Source: https://habr.com/ru/post/1307810/


All Articles