Skip to content

Commit

Permalink
fix(audio): ステレオ音源でループポイントの指定がおかしい
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Feb 16, 2024
1 parent 6cb2d93 commit f739f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Promete/Audio/AudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private async ValueTask PlayAsync(IAudioSource source, int? loop, StopTokenSourc

if (!isFinished) continue;
if (loop is not {} loopStartSample) break;
currentSample = loopStartSample;
currentSample = loopStartSample * source.Channels;
}

if (!st.IsStopRequested)
Expand Down

0 comments on commit f739f17

Please sign in to comment.