simple music player written in Rust
使用Rust编写的简易音乐播放器
- audio loading and playing 音频加载与播放
- playing audio at any speed 任意速度播放音频
- looping 循环播放
play/pause button
and reverse button
will changed the playback speed to acheive their function
播放/暂停按钮
和 倒放按钮
通过改变播放速度来实现其功能
load setting button
will read asset/setting/setting.ron
to reload the setting
加载设置按钮
会读取asset/setting/setting.ron
以重新加载设置
this program will load the whole audio data into memory, loading long audio file may crash
本程序将加载整个音频数据到内存中,加载过长的音频文件可能会导致崩溃
you can change some setting by editing asset/setting/setting.ron
你可以在asset/setting/setting.ron
文件中修改程序的一些设置
feilds of setting.ron
:
setting.ron
中的参数:
// path to your music file 音乐文件路径
music_path: String
// width of the window 窗口的宽度
window_width: f32
// height of the window 窗口的高度
window_height: f32
// max playback speed when moving the speed slider 移动速度滑块时可以调节的最大播放速度
max_play_speed: f32
// min playback speed when moving the speed slider 移动速度滑块时可以调节的最低播放速度
min_play_speed: f32
this project mainly uses the following crates
本工程主要使用了以下库