src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2564 c9348710a98a
parent 2563 be2ea885d70b
child 2565 698c776c642f
equal deleted inserted replaced
2563:be2ea885d70b 2564:c9348710a98a
   789 
   789 
   790          /* Envelope */
   790          /* Envelope */
   791          if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) {
   791          if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) {
   792             SDL_free(envelope);
   792             SDL_free(envelope);
   793             dest->lpEnvelope = NULL;
   793             dest->lpEnvelope = NULL;
       
   794          }
   794          else {
   795          else {
   795             envelope->dwAttackLevel = CONVERT(hap_ramp->attack_level);
   796             envelope->dwAttackLevel = CONVERT(hap_ramp->attack_level);
   796             envelope->dwAttackTime = hap_ramp->attack_length * 1000;
   797             envelope->dwAttackTime = hap_ramp->attack_length * 1000;
   797             envelope->dwFadeLevel = CONVERT(hap_ramp->fade_level);
   798             envelope->dwFadeLevel = CONVERT(hap_ramp->fade_level);
   798             envelope->dwFadeTime = hap_ramp->fade_length * 1000;
   799             envelope->dwFadeTime = hap_ramp->fade_length * 1000;