Skip to content

Commit

Permalink
Add audio track to move action
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Mar 31, 2024
1 parent 3a1490f commit 5a8f0a1
Show file tree
Hide file tree
Showing 13 changed files with 2,890 additions and 6,255 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: InheritParentConfig
ColumnLimit: 132
655 changes: 200 additions & 455 deletions audio-move.c

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions data/locale/en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ ValueAction.SourceVisibility="Source Visibility"
ValueAction.FilterEnable="Filter Enable"
SourceVisibility="Source Visibility"
SourceMute="Source Mute"
SourceAudioTrack="Source Audio Track"
AudioTrack="Audio Track"
AudioTrack.None="None"
AudioTrack.All="All"
AudioTrack.Track1="Track 1"
AudioTrack.Track2="Track 2"
AudioTrack.Track3="Track 3"
AudioTrack.Track4="Track 4"
AudioTrack.Track5="Track 5"
AudioTrack.Track6="Track 6"
FilterEnable="Filter Enable"
Scene="Scene"
Filter="Filter"
Expand Down
10 changes: 3 additions & 7 deletions easing.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,9 @@ AHFloat ElasticEaseOut(AHFloat p)
AHFloat ElasticEaseInOut(AHFloat p)
{
if (p < 0.5) {
return (AHFloat)(0.5 * sin(13 * M_PI_2 * (2 * p)) *
pow(2, 10 * ((2 * p) - 1)));
return (AHFloat)(0.5 * sin(13 * M_PI_2 * (2 * p)) * pow(2, 10 * ((2 * p) - 1)));
} else {
return (AHFloat)(0.5 * (sin(-13 * M_PI_2 * ((2 * p - 1) + 1)) *
pow(2, -10 * (2 * p - 1)) +
2));
return (AHFloat)(0.5 * (sin(-13 * M_PI_2 * ((2 * p - 1) + 1)) * pow(2, -10 * (2 * p - 1)) + 2));
}
}

Expand Down Expand Up @@ -256,8 +253,7 @@ AHFloat BounceEaseOut(AHFloat p)
} else if (p < 8 / 11.0) {
return (363 / 40.0f * p * p) - (99 / 10.0f * p) + 17 / 5.0f;
} else if (p < 9 / 10.0) {
return (4356 / 361.0f * p * p) - (35442 / 1805.0f * p) +
16061 / 1805.0f;
return (4356 / 361.0f * p * p) - (35442 / 1805.0f * p) + 16061 / 1805.0f;
} else {
return (54 / 5.0f * p * p) - (513 / 25.0f * p) + 268 / 25.0f;
}
Expand Down
Loading

0 comments on commit 5a8f0a1

Please sign in to comment.