原始帖子
这是一个我在两天内为了好玩而快速制作的模组。它可以播放 .mp3 文件,并从文件夹和 .m3u 文件中加载播放列表。
控制键(全部可重新绑定):
Home: 打开菜单
End: 播放/暂停
Page Up: 音乐音量调高(Ctrl+点击相当于下一首)
Page Down: 音乐音量调低(Ctrl+点击相当于上一首)
截图:


使用方法:
您可以通过选择名称并按下角落中的按钮来创建播放列表。选择 .m3u 文件会扫描该文件并提取所有可找到的 .mp3 文件。选择文件夹则会递归搜索该文件夹及其子文件夹中的所有 .mp3 文件。目前尚不支持流式传输和扩展格式的 m3u 文件。
随后,您可以选择一个播放列表并双击歌曲进行播放。您可以在顶部选项菜单中移动或隐藏 HUD,并更改播放模式(单曲、循环 [单曲]、循环 [播放列表] 和随机)。
按住 Shift + Ctrl 键可启用开发者设置,以防出现异常;若出现问题,请尝试重置线程。
注意:播放列表选择器会出现在一个独立的窗口中。如果您点击“选择播放列表”按钮时游戏卡死,请尝试切换窗口(Alt+Tab),查看该窗口是否已存在。
由 JLayer 和 mp3agic 提供支持。我未对其进行长时间运行的测试。如果出现问题,请告诉我。
源代码
如果你在使用该模组时遇到任何问题,或只是想联系我,你可以在 Twitter 上找到我(@Vazkii),或在 IRC 频道(irc.esper.net 上的 #vazkii)联系。
Original Thread
This is a quick mod I threw together in 2 days for fun. It plays .mp3 files and loads playlists from folders and .m3u files.
Controls (All Rebindable):
Home: Open menu
End: Play/Pause
Page Up: Music Volume Up (Ctrl-click acts as Next Song)
Page Down: Music Volume Down (Ctrl-click acts as Previous Song)
Screenshots:


Usage:
You can create a playlist by selecting a name and pressing the button in the corner. Selecting a .m3u file crawls it and picks up all .mp3 files it can find. Selecting a folder has it look through it and sub folders for all .mp3 files. Streaming and extended m3u is not suported yet.
You can then select a playlist and double click a song to play it. You can move or disable the HUD and change the play mode (Track, Repeat [Track], Loop [Playlist] and Shuffle) in the options at the top.
Holding Shift + Ctrl enables the developer settings if something breaks, try resetting the thread.
NOTE: The playlist selector appears in a separate window. If your game freezes when you click the "Select Playlist" button, try alt tabbing and seeing if the window is there.
Powered by JLayer and mp3agic. I did not test this over extended periods of time. Tell me if something breaks.
Source Code
If you have any problems with the mod or just want to contact me, you can find me on Twitter (@Vazkii) or IRC (#vazkii on irc.esper.net).
评论 0
登录后参与评分
还没有评论,来抢沙发吧