Skip to content

Commit beb6dd1

Browse files
authored
Merge pull request #659 from timothyschoen/play-fix
Fix uninitialised variables
2 parents 23f8f68 + 409ccbb commit beb6dd1

File tree

1 file changed

+1
-1
lines changed
  • cyclone_objects/binaries/audio

1 file changed

+1
-1
lines changed

cyclone_objects/binaries/audio/play.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static t_int *play_perform(t_int *w)
387387
//let's handle this in two cases, forwards playing (isneg == 0), backwards playing (isneg == 1)
388388
for (iblock = 0; iblock < nblock; iblock++){
389389
double phase = x->x_phase;
390-
double fadephase, fadegain;
390+
double fadephase = 0.0, fadegain = 0.0;
391391
if(isneg){
392392

393393
//[0---endxsamp---endsamp----stxsamp----stsamp----npts]

0 commit comments

Comments
 (0)