|
manzachu
Posts: 1
|
 |
« on: 28 Feb '12 - 11:29 » |
Quote
|
I really wannt get BPM of the music.
I tried to use the code "BASS_ChannelGetAttribute(chan, BASS_ATTRIB_MUSIC_BPM, &value);"
however it always return 'BASS_ERROR_ILLTYPE'.
here is my code.
HMUSIC chan; //global variable
if (!(chan=BASS_StreamCreateFile(FALSE,file,0,0,0)) && !(chan=BASS_MusicLoad(FALSE,file,0,0,BASS_MUSIC_POSRESET|BASS_MUSIC_PRESCAN,0))) { Error(_T("Can't play file")); return FALSE; // Can't load the file }
after loading music, playing music is really well. But I can't get BPM...
how can I get BPM??? I don't wanna see 'BASS_ERROR_ILLTYPE' anymore..
is there something wrong to use the function BASS_ChannelGetAttribute?
|