Jump to content

Effects in Bass audio library end prematurely


nss
 Share

Recommended Posts

Hi all,

 

I am making a program in which I use Bass audio library (with the wrapper for autoit that I found here on forums I think) because of its support for dx effects.

My problem, though, is that when effects as reverb or echo/delay are added, the channel length is not extended as to fit the tail of the effect, so if the file was really short, you wouldn't even hear the reverb at all.

I've tried setting the  buffer parameter even to 60k ms, updating the channel length to 60k ms, but nothing makes it so that the effects aren't being cut off.

I've heard that I could add silence manually to wave files by adding the chr(0) characters, but haven't had any luck doing that, either.

What I'm doing:

  1. initialize bass
  2. use streamCreateFile to load the wave file with the fx flag and length parameter set to 60000
  3. set the config buffer to 60000
  4. use channel set fx to add dx8 reverb
  5. use channel play to play the sound
  6. use bass update to update the length to 60000

 

I even tried having only silence in one wave file and tried joining two wave files together, but that didn't work either.

 

Any help would be very much appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...