22 May '13 - 16:45 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: problem with BASS_BFX_VOLUME_ENV  (Read 219 times)
mikhail
Guest
« on: 20 Aug '12 - 09:39 »
Reply with quoteQuote

in global vars
  Fade:BASS_BFX_VOLUME_ENV;
  node: array of BASS_BFX_ENV_NODE;
  fx_vol: integer;

setting fx
  SetLength(node, 4);
  node[0].pos:=0.0;
  node[0].val:=1;
  node[1].pos:=BASS_ChannelBytes2Seconds(AudioChannel, Trunc(GraphDisplay3D1.Items.Item[0].SelectionStart));
  node[1].val:=1;
  node[2].pos:=BASS_ChannelBytes2Seconds(AudioChannel, Trunc(GraphDisplay3D1.Items.Item[0].SelectionStart))+0.1;
  node[2].val:=0;
  node[3].pos:=BASS_ChannelBytes2Seconds(AudioChannel, Trunc(GraphDisplay3D1.Items.Item[0].SelectionEnd));
  node[3].val:=1;
  fade.lChannel:=BASS_BFX_CHANALL;
  fade.lNodeCount:=4;
  fade.pNodes:=@node;
  fade.bFollow:=True;
  BASS_FXSetParameters(fx_vol, @fade);

bass error - ILLPARAM, but when i create this fx locally this code working
Logged
Ian @ un4seen
Administrator
Posts: 15260


« Reply #1 on: 20 Aug '12 - 14:39 »
Reply with quoteQuote

Please confirm what each node's "pos" value is. One possible reason for a BASS_ERROR_ILLPARAM error is if a node's position is lower than the previous node's position.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines