banner



How To Play Mp3 File In C# Windows Application

  • user

    What kind of license should this library have? I'd guess there are a couple of GPL ones (although the mp3 format/algorithm always has/had information technology's license bug) but these might not fit your project. Besides: windows/osx/linux?

    Respond

  • user

    I don't know if it is "the easiest way", but yous could have a look at SDL (along with SDL_sound).

    Answer

  • user

    If you are on Windows or OSX, I recommend BASS (http://www.un4seen.com/bass.html)

    You can download the library and look at code sample to get started. The "contest" case in C directory is a good start point.

    Answer

  • user

    Using FMOD (cross platform), this should be as uncomplicated as this:

                    #include <conio.h> #include "inc/fmod.h"  FSOUND_SAMPLE* handle;  int master () {    // init FMOD sound system    FSOUND_Init (44100, 32, 0);     // load and play mp3    handle=FSOUND_Sample_Load (0,"my.mp3",0, 0, 0);    FSOUND_PlaySound (0,handle);     // wait until the users hits a central to end the app    while (!_kbhit())    {    }     // clean upwards    FSOUND_Sample_Free (handle);    FSOUND_Close(); }                              

    Equally a side note, I'd suggest you using C++ over C.

    Reply

  • user

    If u can use C++ and if u are working on windows platform than use
    WMp3

    That Library is like shooting fish in a barrel to work with and let you lot play, pause, seek on mp3 files.

    Reply

  • user

    Basically you can utilize the windows.h header file

                    #include <windows.h> void primary() {     //replace music with your filename     system("outset music.mp3"); }                              

    Respond

  • user

    alternatively something someone's already written that volition just run and quit.

    You can use mpg123 (or the fixed point port of it, mpg321)

                    mpg123 <mp3file>                              

    volition play an mp3 file and quit.

    Reply

  • user

    Get hither:

    http://code4k.blogspot.com/2010/05/playing-mp3-in-c-using-plainly-windows.html

    This website has a nada in which you can view how this person generated the code for an mp3 thespian.

    Yous tin also check out:
    http://world wide web.codeguru.com/cpp/g-m/directx/directshow/article.php/c19079/Unproblematic-C-MP3-Player-Class.htm

    or

    http://world wide web.ucancode.net/Visual_C_Control/Play-MP3-File-VC-Sample-Histrion.htm

    Reply

  • user

    On Win32, you don't need any library.
    Use standard Win32 api (mp3 is native)

    See on Adv. Win32 api newsgroup :
    news://comp.bone.ms-windows.programmer.win32
    where it 's a FAQ.

    Reply

  • user

    The BASS DLL is really easy to use and will probably do what you need. It is only free for non-commercial utilize though.

    If you need more control, you volition need a codec (I prefer libMad) and some sound output API similar DirectSound on Windows or ALSA or Linux (or whatever Linux guys apply for sound this week)

    Respond

  • user

    mpg123 has a generic remote interface that you access by starting the executable with the -R option. Yous tin can and then send commands (such as load, pause etc) over a fifo pipe or to stdin of the subprocess. If nothing else it's easy to debug and test manually.

    Reply

  • Source: https://www.techtalk7.com/how-to-play-mp3-files-in-c/

    Posted by: pachecopamentier45.blogspot.com

    0 Response to "How To Play Mp3 File In C# Windows Application"

    Post a Comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel