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

thxml编写问题 #8

Open
RetroCyber opened this issue Nov 3, 2021 · 13 comments
Open

thxml编写问题 #8

RetroCyber opened this issue Nov 3, 2021 · 13 comments

Comments

@RetroCyber
Copy link
Contributor

昨天晚上我找出了刚欲异闻的循环点,本来想依靠thxml来导出,但是似乎插件对ogg的支持不是很好啊,好像只能支持解包游戏数据包?但是游戏解包还没有人完全研究出来啊,有无方法先支持一下文件夹内的ogg单独播放。

@RetroCyber
Copy link
Contributor Author

昨晚上我实验了各种方法想自行编写thxml文件均以失败告终,无论怎样播放器都识别不了。

@nyfair
Copy link
Owner

nyfair commented Nov 3, 2021

我印象中foobar2000读utf-8文件一定要带上BOM头,参考下这个?
https://github.com/nyfair/foo_thbgm/blob/master/thxml/Template.thxml
反正重要的就音乐开始点,循环开始点,循环长度三个参数,之前的黄昏游戏都是ogg没啥问题
刚欲异闻解包也不是特别复杂,反而比之前要折腾密钥的格斗作品还简单,哪天有空了去码一下

@nyfair
Copy link
Owner

nyfair commented Nov 3, 2021

单纯的ogg有前人提供的例子可参考
https://github.com/otoboku/thxml/tree/master/ED67

@nyfair
Copy link
Owner

nyfair commented Nov 3, 2021

已经有先行者了,仅供参考
https://github.com/brliron/135tk/tree/master/th175arc

@RetroCyber
Copy link
Contributor Author

谢谢作者,已经可以正常的识别了,请问有办法用foo2k导出2遍循环吗。

@nyfair
Copy link
Owner

nyfair commented Nov 4, 2021

loop count设成2?

@RetroCyber
Copy link
Contributor Author

额。。其实是我没有找到导出的方法,之后我在网上找到了一款叫Audacity的音频处理软件,支持采样点选区,现在我已经弄好了音频提取,谢谢作者的解答。

@nyfair
Copy link
Owner

nyfair commented Nov 4, 2021

哦,我以为你说的是使用foobar2000自带的转换器转成其他格式导出

@nyfair
Copy link
Owner

nyfair commented Nov 4, 2021

@ROCO-freedom
顺便问下,staff_roll.ogg,游戏封包里面应该没有循环定义,这段音频一共有6200294个sample,你提供的6197108是怎么推算出来的?

@RetroCyber
Copy link
Contributor Author

哦,这个啊,因为我不知道怎么写全曲循环播放就用打点软件拖进去了写了里面能显示的最大值。

@nyfair
Copy link
Owner

nyfair commented Nov 4, 2021

明白了,感谢反馈

@RetroCyber
Copy link
Contributor Author

那我就不重新提交pull request了,我在本地改一下。

@RetroCyber
Copy link
Contributor Author

本来想提一个pull request,不过您似乎加入了直接读包的功能,为避免覆盖我就不提了。我只改了自己fork的库。

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

No branches or pull requests

2 participants