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:
Qt Code:
  1. Phonon::MediaObject* music;
  2.  
  3. void MainWindow::on_pushButton_clicked()
  4. {
  5. QFile* MonFichier = new QFile(QString("C:/SPLIT/ORIGINAL.wav.001"));
  6. MonFichier->open(QIODevice::ReadOnly);
  7.  
  8. QByteArray* MonArray = new QByteArray();
  9. MonArray->resize(40000000);
  10. MonArray->replace(0,MonFichier->readAll().length(),MonFichier->readAll());
  11. MonArray->resize(40000000);
  12.  
  13. QBuffer* MonBuffer = new QBuffer(MonArray);
  14. MonBuffer->open(QIODevice::ReadWrite);
  15. }
  16.  
  17. void MainWindow::on_pushButton_2_clicked()
  18. {
  19. qint64 Temp = music->currentTime();
  20.  
  21. music->seek(Temp);
  22. }
To copy to clipboard, switch view to plain text mode