Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases > Coding Snippets
You last visited: Today at 06:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Make your own music player using MCISendString

Discussion on Make your own music player using MCISendString within the Coding Snippets forum part of the Coding Releases category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 166
Make your own music player using MCISendString

This is a very simple music player using MCISendString commands.


I made some functions to make it easy undestand and add a lot of comments.

Ok make a new empty console project in VC++ add these files to your project. You have to link or add this to your project in order not to have linker errors
#pragma comment(lib,"winmm.lib")

MP3Player.cpp: //in this cpp we declare all the functions related with our mp3Player 3 of them are commented i will explain them later.


MP3Player.h : //has the structure of our mp3player and the declarations of the functions.


main.cpp:

This music player will only find mp3 music in one folder at once. Why don't you try to modify the code and make it work with all formats (mp4,wav,etc) and to search in different folders inside the one you selected (clue you can modify the function FindInFolders which is commented) also use getFileAttributes to find out if it is a file or a folder.

Best Wishes and happy codding
elmarcia is offline  
Old 12/10/2013, 23:59   #2



 
yazzn.biz's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,019
Received Thanks: 979
TBH Your code looks horrible.

P.S.: I'll edit my post within the next days and go into detail (if somebody else didn't do that already by then)
yazzn.biz is offline  
Old 12/11/2013, 00:10   #3
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
its troll anyway.
Dr. Coxxy is offline  
Old 12/16/2013, 17:25   #4


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,904
Received Thanks: 25,394
Arrow C/C++ -> Coding Snippets

#moved
MrSm!th is offline  
Reply


Similar Threads Similar Threads
[B]Trance Music Radio Player (BEST MUSIC EVER ) [S] 3 EGOLD
03/20/2013 - elite*gold Trading - 0 Replies
hi everyone , i present you my first program i hope you buy it and like it thnks screen : http://img15.hostingpics.net/pics/722562screen.pn g No permission
[RELEASE]Music Player xD
03/16/2013 - Metin2 PServer Guides & Strategies - 10 Replies
--]-- quest music begin state start begin when 20091.chat."Music Player" with pc.name == "HaveBeen" begin say_title(mob_name(npc.get_race())) say("") --- say("Enter the music name") say("") local name = input()
[B]Music Player [S] e*gold
10/15/2012 - elite*gold Trading - 0 Replies
#Close
[Suche] WoW Music Player
09/22/2006 - World of Warcraft - 5 Replies
Hallo, Ich suche einen MP3 Player bzw. einen Audio Player für World of Warcraft. Er sollte reibungslos mit der Deutschen Version kompatibel sein, da ich nur die Deutsche habe.^^ Hab mich selbst mal umgeschaut aber die meisten geben immer errors oder gehen net! danke
Music player addon
03/30/2006 - Conquer Online 2 - 29 Replies
Check this out: http://www.elitepvpers.com/forum/index.php?...f=85 &t=17597&s=



All times are GMT +1. The time now is 06:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.