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

サンプリングレートに「エンジンのデフォルト」を追加 #925

Closed
Hiroshiba opened this issue Sep 6, 2022 · 3 comments · Fixed by #973
Closed

サンプリングレートに「エンジンのデフォルト」を追加 #925

Hiroshiba opened this issue Sep 6, 2022 · 3 comments · Fixed by #973

Comments

@Hiroshiba
Copy link
Member

内容

のタスクの1つです。
エンジン側が持っているデフォルトのサンプリングレートを取得し、それがデフォルトであることがわかるようにします。

Pros 良くなる点

わかりやすい

Cons 悪くなる点

実装を変えないといけない

その他

@Hiroshiba
Copy link
Member Author

Hiroshiba commented Sep 6, 2022

のengine manifest取得がないと進められないことに気づいたので、マージまで待機します

@Hiroshiba
Copy link
Member Author

進めようとしてみました。

エンジンごとにデフォルトサンプリングレートを使えるよう、エディタ側のAudioQueryのoutputSamplingRateの型をnumber | "default"にしようかなと思っています。
このとき

・エンジン←→エディタのAudioQuery変換
・プロジェクトファイルのマイグレーション
・エンジンAPI叩く部分変更
・設定保存周りの変更

などが必要になりそうでした。

@Hiroshiba
Copy link
Member Author

electron-storeがnumber | "default"型の保存ができなそうでした。
設定の保存段階ではoutputSamplingRate==0の場合をdefaultとして扱う方針にしようかなと思っています。
もしくはstringにするか。

どちらにせよ、electron-storeとvuexで型を変換する必要があるので、こちらもアダプターが必要になりそうでした。

electron←→vuexでsattingsを変換し、vuex←→APIでAudioQueryを変換する大掛かりな作業が必要なので、実装にちょっと時間がかかっています。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant