Thread: MP3 player?

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Kurunegala Colony, Sri Lanka, Sri Lanka

    MP3 player?

    I want to build a basic MP3 playing program without using DirectX functions. What’s the best way to do this? Please give me some tips.

  2. #2
    Registered User
    Join Date
    Apr 2002
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    You can use mci:
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #if defined(_MSC_VER) || defined(__BORLANDC__)
    #pragma comment(lib, "winmm.lib")
    int main(void)
    	mciSendString("Play welcome.mp3", NULL, 0, NULL);
    	//mciSendString("Play welcome.mp3 from 10 to 10000", NULL, 0, NULL);
    	return EXIT_SUCCESS;
    For some idea of the commands you can use, see this MP3 player that uses MCI:
    or this one:
    or search:
    or read the documentation:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  2. mp3 player
    By cmyoung23 in forum C++ Programming
    Replies: 8
    Last Post: 09-13-2007, 12:11 PM
  3. Speaker suggestions for MP3 player
    By ulillillia in forum A Brief History of
    Replies: 6
    Last Post: 05-08-2007, 03:06 AM
  4. which Portable mp3 player?
    By Raihana in forum A Brief History of
    Replies: 27
    Last Post: 01-09-2004, 07:58 AM