Play a MP3.

Play a MP3.

mciSendString

See version :

Dépendances (dans l'archive) :
test.mp3

Download :

#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>

#pragma comment(lib,"winmm")

int main(void)
{
    MCIERROR err;
    err = mciSendString(_T("open test.mp3 alias mp3"), NULL, 0, 0);
    mciSendString(_T("play mp3 repeat"), NULL, 0, 0);

    puts("Tapez [ENTER] pour Quitter");
    getchar();

    mciSendString(_T("stop mp3"), NULL, 0, 0);
    mciSendString(_T("close mp3"), NULL, 0, 0);
    return 0;
}



Explanations

	No explanations yet.