hi,
i try to implement bass fx 2.0 and bass 2.1... here my code-snippets:
BASS_Init(1,44100,0,GetSafeHwnd(),NULL);
hStream = BASS_StreamCreateFile(false, m_sFileName, 0, 0, BASS_SAMPLE_LOOP|BASS_STREAM_DECODE);
BASS_ChannelGetAttributes(hStream, &m_nFreq, NULL, NULL);
BASS_FX_TempoCreate(hStream, 0);
BASS_FX_TempoSet(hStream, 0.0f, -1, -100.0f);
QWORD len = BASS_StreamGetLength(hStream);
m_Progress.SetRange(0, len);
BASS_ChannelPlay(BASS_FX_TempoGetResampledHandle(hStream), false);
m_Progress is an ownerdrawn controll, works with __int64... so there is nothing special... its realy plain code... bass_init is called in another class then the bass-functions are. but that should not be a problem... ah, the problem:
without using the bass_fx-lib everything works fine. after implementation the song is played tooo fast. i think about +10% - also it sounds a bit time-posterized. how to describe... like a vinyl, with some cracks and the needle jumps sometimes over 1 line forward ;o)
BASS_FX_TempoSet(hStream, 0.0f, -1, -100.0f);
and
BASS_FX_TempoSet(hStream, -10.0f, -1, -100.0f);
makes no difference in the output.
so what? what did i do wrong...
cheers,
vertex...