I want to make a simple MP3 player using BASS library. I have this code :
BASS_Init(-1, 44100, 0, 0, NULL);
qDebug() << BASS_ErrorGetCode();
HSTREAM stream = BASS_StreamCreateFile(FALSE,"C:/1.mp3", 0, 0, 0);
qDebug() << stream;
qDebug() << BASS_ErrorGetCode();
BASS_ChannelPlay(stream, FALSE);
qDebug() << BASS_ErrorGetCode();
This code compiles fine, but when i launch my program the MP3 seems to be not played while the output seems to be normal :
0
2952790017
0
0
Do you have a solution ?