In this code:
myStream = BASS_StreamCreateFile(pathToFile,0,0,0);
int streamDelay = BASS_ChannelSetFX(myStream, BASS.BASS_FX_DX8_ECHO, DELAY_PRIORITY);
BASS.BASS_DX8_ECHO a=new BASS.BASS_DX8_ECHO();
BASS_FXGetParameters(streamDelay, a);
a.fFeedback=feedback;
a.fLeftDelay=delay ;
a.fRightDelay=delay ;
a.fWetDryMix=mix;
boolean b= BASS_FXSetParameters(streamDelay, a);
BASS_ChannelPlay(myStream, false);
For short duration files, the echo stops as soon as the sound ends, which is understood to be because the stream stops at that moment. A solution could be put myStream inside a BASS_Mixer_StreamCreate and apply the effect to this last to obtain the desired result, but is there a direct way to keep the channel active even if the stream ends (BASS_STREAM_AUTOFREE flag is not active in the example)?
Thanks in advance