Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audioRendering.tsとsinging.tsを変更 #1

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

sigprogramming
Copy link

内容

Transportのループ周りの処理とインターフェースを変更します。
また、再生中にループの設定を変更した場合に反映されるように、SET_LOOP_ENABLED等のactionでtransportへの設定を行うようにします。

関連 Issue

VOICEVOX#2281 (comment)

その他

if (
!this.loop ||
this.loopEndTime <= this.loopStartTime ||
this.startTime >= this.loopEndTime
Copy link
Author

@sigprogramming sigprogramming Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

再生ヘッドがループ範囲外にある場合は、ループ範囲内に戻さずにそのまま再生されるようにしています。(DAWと同じ挙動)

ここのthis.startTime >= this.loopEndTimeと、下の

if (contextTimeToLoop < this.scheduledContextTime) {
  return;
}

がその処理です。

@romot-co
Copy link
Owner

romot-co commented Oct 5, 2024

@sigprogramming
こちら本当にありがとうございます!マージいたします!

@romot-co romot-co merged commit b346832 into romot-co:feature/2224_add_loop Oct 5, 2024
8 checks passed
@sigprogramming sigprogramming deleted the loop branch October 5, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants