Hello all the world!
I would like to set up an application which would be able to read musics cuts out of small piece.
Admittedly, while I download the parts in the order of a file, I wish to start to read the first pieces I wish to read these musics with the Phonon module included in my version of QT
Thanks for reading ! if you have idea, a solution !
Here what I have to begin has to make:
Phonon::MediaObject* music;
void MainWindow::on_pushButton_clicked()
{
MonArray->resize(40000000);
MonArray->replace(0,MonFichier->readAll().length(),MonFichier->readAll());
MonArray->resize(40000000);
}
void MainWindow::on_pushButton_2_clicked()
{
qint64 Temp = music->currentTime();
music->seek(Temp);
}
Phonon::MediaObject* music;
void MainWindow::on_pushButton_clicked()
{
QFile* MonFichier = new QFile(QString("C:/SPLIT/ORIGINAL.wav.001"));
MonFichier->open(QIODevice::ReadOnly);
QByteArray* MonArray = new QByteArray();
MonArray->resize(40000000);
MonArray->replace(0,MonFichier->readAll().length(),MonFichier->readAll());
MonArray->resize(40000000);
QBuffer* MonBuffer = new QBuffer(MonArray);
MonBuffer->open(QIODevice::ReadWrite);
}
void MainWindow::on_pushButton_2_clicked()
{
qint64 Temp = music->currentTime();
music->seek(Temp);
}
To copy to clipboard, switch view to plain text mode
Bookmarks