Skip to content

Commit

Permalink
effect_stereoreverse.c (Mix_SetReverseStereo): further minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 18, 2019
1 parent 567d0be commit 7568876
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions effect_stereoreverse.c
Expand Up @@ -130,12 +130,8 @@ int Mix_SetReverseStereo(int channel, int flip)
Mix_SetError("Unsupported audio format");
return(0);
}

if (!flip) {
return(Mix_UnregisterEffect(channel, f));
} else {
return(Mix_RegisterEffect(channel, f, NULL, NULL));
}
if (!flip) return Mix_UnregisterEffect(channel, f);
return(Mix_RegisterEffect(channel, f, NULL, NULL));
}

Mix_SetError("Trying to reverse stereo on a non-stereo stream");
Expand Down

0 comments on commit 7568876

Please sign in to comment.