473,413 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

How to create a simple music player in C#?

Hi, iv'e been trying to create a music player for some time now, and apperently with "System.Media.Soundplayer"
you can only use wave files, and I wanna use other mp3 files.
I have been directed before to SDL.net, and i want to create the music player without any library (in the normal code and desinger form...).
is there a way to do that? or am i just wasting my time?
Aug 14 '10 #1
2 5610
Aimee Bailey
197 Expert 100+
Five ways to play an MP3 in a windows application:

1. Use a library like you mentioned.

2. Add the windows media control into your project (wmp.dll), and play them via that method.

3. (Little bit of a hack) Use the WebBrowser control, and use some html that references a flash file.

4. Write a program that uses the Lame decoder (or similar) and buffer audio to the sound card, though this technically is using a library.

5. Write your own decoder processing everything yourself, then buffer the audio to the sound card.

----

Please note I have ordered them in reccomend order, using a library means you usually have more control over what is going on, without having to code everything yourself, Although as always, it does depend on what your requirements are.

For an excellent library, I would reccomend bass24, it has the ability to play many audio formats, and now has a .Net version.

Aimee.
Aug 14 '10 #2
Youv'e been very helpful!
Thanks a lot, iil try it out :)
Aug 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Justin Sane | last post by:
I have bought a book to learn C++, I bought Jesse Liberty's thick book, and so far I haven't seen how I can create simple applications for Windows with buttons, checkboxes, text areas, etc......
7
by: paytam | last post by:
How can I design a simple sound player in C.I also don't know the structre of music files format.Please help me.
2
Monolux
by: Monolux | last post by:
Are there amy Python based music player? That are simple to use? Because i'm thinking of learning a little about it. txs for the time...
0
by: Vaibhav Malik | last post by:
Hi friends! I wan't to know how shud i program the controls of a simple music player like play, pause & stop in C#.
0
by: xoqqa | last post by:
I have an assignment that requires me to build a Simple Music Editor. One of the tasks is that when I press a button (music key) the program will display the music note in a Music Staff. The...
8
by: robak | last post by:
Hello and sorry for my bad english :). I need to create simple editor (geometry basic shapes like lines, rectangles, ellipse). I have a little problem. I know how to create simple shape but dont know...
4
by: lakul | last post by:
Hi everyone i m new to this topic. i would like to know that, how we can create simple wave file of 8bit mono ? can anybody guide me to learn out this wonderfull feature of C/C++?
4
by: rabindra123 | last post by:
hi everyone, I want a music player for the greetings card which can run on .mp3,.midi,.mov file and also it should run in all the browser.Any idea plaese help
7
hsriat
by: hsriat | last post by:
Please suggest me a decent music player. My requirements are: JavaScript is able to add songs to the playlist dynamically. JavaScript can select which song to play. I don't care for 'music not...
1
by: macdalor | last post by:
Hi, I am in the process of improving my website (http://davidloran.com) and was wondering if someone had an idea to create a "floating" music player that could be dragged around on the site's...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.