I want to play music using "BASS_StreamCreate" but it doesn't work well. I can't hear the sound.
I make two HSTREM(m_stream ,m_PlayStream ) . One is used for opening a file which has dates. And the other one is used for playing.
Brief procedure is like this.
m_stream = BASS_StreamCreateFile(FALSE,strAFileName,0,0,BASS_STREAM_DECODE);
m_PlayStream = BASS_StreamCreate(m_info.freq, m_info.chans, 16, &BASSStreamCallback, (DWORD)this);
DWORD CALLBACK BASSStreamCallback(HSTREAM handle, void *buffer, DWORD length, DWORD user)
CBassWrapper *pHost = (CBassWrapper*)user;
BASS_ChannelGetData(pHost->m_stream, buffer, length);
"buffer" gets m_stream's data but I can't hear anything.
If you have a advice or know basic example which plays music using "BASS_StreamCreate", please let me know.