featured work

Categories:

featured work

Content:

Text-To-Speech Expand to full view

C++ Mp3 player - part 1

Video tutorial

Here is the code

#include "mp3player.h"
#include <QApplication>
#include <QMediaPlayer>
#include <QFileInfo>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    mp3player w;
    w.show();

    QMediaPlayer* player = new QMediaPlayer;
    // ...
    player->setMedia(QUrl::fromLocalFile("C:/music.mp3"));
    player->setVolume(50);
    player->play();

    return a.exec();
}

 

Watch part 2

tags:


Print Friendly and PDF

Please authenticate to bookmark

1 Votes (10) Average Rating
4586 Views
Date Created 2014-03-09
Author : fb-fac3b0ok 
 
Report

Pages: 1 All
fb-fac3b0ok
Said:
This is great!
 8 years ago
Report
Pages: 1 All

Sorry! You need to register and loggin before you can comment.